From 48275a1bf5c021524de96c908babcd1aaeda5e8f Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sun, 19 Sep 2010 20:39:48 +0200 Subject: [PATCH] updated proxies --- .../VolkszaehlerModelAggregatorProxy.php | 20 +++++++++++++++---- .../Proxy/VolkszaehlerModelChannelProxy.php | 14 +++++++++---- .../Proxy/VolkszaehlerModelEntityProxy.php | 14 +++++++++---- .../Proxy/VolkszaehlerModelPropertyProxy.php | 12 ++++++++--- 4 files changed, 45 insertions(+), 15 deletions(-) diff --git a/backend/lib/Model/Proxy/VolkszaehlerModelAggregatorProxy.php b/backend/lib/Model/Proxy/VolkszaehlerModelAggregatorProxy.php index a536b34..945f524 100644 --- a/backend/lib/Model/Proxy/VolkszaehlerModelAggregatorProxy.php +++ b/backend/lib/Model/Proxy/VolkszaehlerModelAggregatorProxy.php @@ -51,6 +51,18 @@ class VolkszaehlerModelAggregatorProxy extends \Volkszaehler\Model\Aggregator im return parent::removeChannel($child); } + public function getChannels() + { + $this->_load(); + return parent::getChannels(); + } + + public function checkPersist() + { + $this->_load(); + return parent::checkPersist(); + } + public function getProperty($name) { $this->_load(); @@ -63,16 +75,16 @@ class VolkszaehlerModelAggregatorProxy extends \Volkszaehler\Model\Aggregator im return parent::getProperties($prefix); } - public function setProperty(\Volkszaehler\Model\Property $property) + public function setProperty($key, $value) { $this->_load(); - return parent::setProperty($property); + return parent::setProperty($key, $value); } - public function unsetProperty($name) + public function unsetProperty($name, \Doctrine\ORM\EntityManager $em) { $this->_load(); - return parent::unsetProperty($name); + return parent::unsetProperty($name, $em); } public function getId() diff --git a/backend/lib/Model/Proxy/VolkszaehlerModelChannelProxy.php b/backend/lib/Model/Proxy/VolkszaehlerModelChannelProxy.php index e07598d..0504523 100644 --- a/backend/lib/Model/Proxy/VolkszaehlerModelChannelProxy.php +++ b/backend/lib/Model/Proxy/VolkszaehlerModelChannelProxy.php @@ -33,6 +33,12 @@ class VolkszaehlerModelChannelProxy extends \Volkszaehler\Model\Channel implemen return parent::addData($data); } + public function checkPersist() + { + $this->_load(); + return parent::checkPersist(); + } + public function getProperty($name) { $this->_load(); @@ -45,16 +51,16 @@ class VolkszaehlerModelChannelProxy extends \Volkszaehler\Model\Channel implemen return parent::getProperties($prefix); } - public function setProperty(\Volkszaehler\Model\Property $property) + public function setProperty($key, $value) { $this->_load(); - return parent::setProperty($property); + return parent::setProperty($key, $value); } - public function unsetProperty($name) + public function unsetProperty($name, \Doctrine\ORM\EntityManager $em) { $this->_load(); - return parent::unsetProperty($name); + return parent::unsetProperty($name, $em); } public function getId() diff --git a/backend/lib/Model/Proxy/VolkszaehlerModelEntityProxy.php b/backend/lib/Model/Proxy/VolkszaehlerModelEntityProxy.php index 9b35587..551c28c 100644 --- a/backend/lib/Model/Proxy/VolkszaehlerModelEntityProxy.php +++ b/backend/lib/Model/Proxy/VolkszaehlerModelEntityProxy.php @@ -27,6 +27,12 @@ class VolkszaehlerModelEntityProxy extends \Volkszaehler\Model\Entity implements } + public function checkPersist() + { + $this->_load(); + return parent::checkPersist(); + } + public function getProperty($name) { $this->_load(); @@ -39,16 +45,16 @@ class VolkszaehlerModelEntityProxy extends \Volkszaehler\Model\Entity implements return parent::getProperties($prefix); } - public function setProperty(\Volkszaehler\Model\Property $property) + public function setProperty($key, $value) { $this->_load(); - return parent::setProperty($property); + return parent::setProperty($key, $value); } - public function unsetProperty($name) + public function unsetProperty($name, \Doctrine\ORM\EntityManager $em) { $this->_load(); - return parent::unsetProperty($name); + return parent::unsetProperty($name, $em); } public function getId() diff --git a/backend/lib/Model/Proxy/VolkszaehlerModelPropertyProxy.php b/backend/lib/Model/Proxy/VolkszaehlerModelPropertyProxy.php index 0df9620..5185445 100644 --- a/backend/lib/Model/Proxy/VolkszaehlerModelPropertyProxy.php +++ b/backend/lib/Model/Proxy/VolkszaehlerModelPropertyProxy.php @@ -27,16 +27,22 @@ class VolkszaehlerModelPropertyProxy extends \Volkszaehler\Model\Property implem } + public function cast() + { + $this->_load(); + return parent::cast(); + } + public function validate() { $this->_load(); return parent::validate(); } - public function getName() + public function getKey() { $this->_load(); - return parent::getName(); + return parent::getKey(); } public function getValue() @@ -60,6 +66,6 @@ class VolkszaehlerModelPropertyProxy extends \Volkszaehler\Model\Property implem public function __sleep() { - return array('__isInitialized__', 'id', 'name', 'value', 'entity'); + return array('__isInitialized__', 'id', 'key', 'value', 'entity'); } } \ No newline at end of file