From 13456028a1fcd529deb5202928e633a99994c7b7 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 23 Jul 2010 17:03:12 +0200 Subject: [PATCH] updated doctrine proxies --- .../VolkszaehlerModelChannelChannelProxy.php | 93 -------------- .../VolkszaehlerModelChannelMeterProxy.php | 117 ------------------ .../VolkszaehlerModelChannelSensorProxy.php | 93 -------------- .../Proxies/VolkszaehlerModelUserProxy.php | 75 ----------- 4 files changed, 378 deletions(-) delete mode 100644 backend/lib/Model/Proxies/VolkszaehlerModelChannelChannelProxy.php delete mode 100644 backend/lib/Model/Proxies/VolkszaehlerModelChannelMeterProxy.php delete mode 100644 backend/lib/Model/Proxies/VolkszaehlerModelChannelSensorProxy.php delete mode 100644 backend/lib/Model/Proxies/VolkszaehlerModelUserProxy.php diff --git a/backend/lib/Model/Proxies/VolkszaehlerModelChannelChannelProxy.php b/backend/lib/Model/Proxies/VolkszaehlerModelChannelChannelProxy.php deleted file mode 100644 index 8419aae..0000000 --- a/backend/lib/Model/Proxies/VolkszaehlerModelChannelChannelProxy.php +++ /dev/null @@ -1,93 +0,0 @@ -_entityPersister = $entityPersister; - $this->_identifier = $identifier; - } - private function _load() - { - if (!$this->__isInitialized__ && $this->_entityPersister) { - $this->__isInitialized__ = true; - if ($this->_entityPersister->load($this->_identifier, $this) === null) { - throw new \Doctrine\ORM\EntityNotFoundException(); - } - unset($this->_entityPersister); - unset($this->_identifier); - } - } - - - public function getName() - { - $this->_load(); - return parent::getName(); - } - - public function setName($name) - { - $this->_load(); - return parent::setName($name); - } - - public function getDescription() - { - $this->_load(); - return parent::getDescription(); - } - - public function setDescription($description) - { - $this->_load(); - return parent::setDescription($description); - } - - public function getUnit() - { - $this->_load(); - return parent::getUnit(); - } - - public function addData(\Volkszaehler\Model\Data $data) - { - $this->_load(); - return parent::addData($data); - } - - public function getInterpreter(\Doctrine\ORM\EntityManager $em) - { - $this->_load(); - return parent::getInterpreter($em); - } - - public function getId() - { - $this->_load(); - return parent::getId(); - } - - public function getUuid() - { - $this->_load(); - return parent::getUuid(); - } - - - public function __sleep() - { - if (!$this->__isInitialized__) { - throw new \RuntimeException("Not fully loaded proxy can not be serialized."); - } - return array('name', 'description', 'indicator', 'data', 'id', 'uuid'); - } -} \ No newline at end of file diff --git a/backend/lib/Model/Proxies/VolkszaehlerModelChannelMeterProxy.php b/backend/lib/Model/Proxies/VolkszaehlerModelChannelMeterProxy.php deleted file mode 100644 index d0eba44..0000000 --- a/backend/lib/Model/Proxies/VolkszaehlerModelChannelMeterProxy.php +++ /dev/null @@ -1,117 +0,0 @@ -_entityPersister = $entityPersister; - $this->_identifier = $identifier; - } - private function _load() - { - if (!$this->__isInitialized__ && $this->_entityPersister) { - $this->__isInitialized__ = true; - if ($this->_entityPersister->load($this->_identifier, $this) === null) { - throw new \Doctrine\ORM\EntityNotFoundException(); - } - unset($this->_entityPersister); - unset($this->_identifier); - } - } - - - public function getResolution() - { - $this->_load(); - return parent::getResolution(); - } - - public function setResolution($resolution) - { - $this->_load(); - return parent::setResolution($resolution); - } - - public function getCost() - { - $this->_load(); - return parent::getCost(); - } - - public function setCost($cost) - { - $this->_load(); - return parent::setCost($cost); - } - - public function getName() - { - $this->_load(); - return parent::getName(); - } - - public function setName($name) - { - $this->_load(); - return parent::setName($name); - } - - public function getDescription() - { - $this->_load(); - return parent::getDescription(); - } - - public function setDescription($description) - { - $this->_load(); - return parent::setDescription($description); - } - - public function getUnit() - { - $this->_load(); - return parent::getUnit(); - } - - public function addData(\Volkszaehler\Model\Data $data) - { - $this->_load(); - return parent::addData($data); - } - - public function getInterpreter(\Doctrine\ORM\EntityManager $em) - { - $this->_load(); - return parent::getInterpreter($em); - } - - public function getId() - { - $this->_load(); - return parent::getId(); - } - - public function getUuid() - { - $this->_load(); - return parent::getUuid(); - } - - - public function __sleep() - { - if (!$this->__isInitialized__) { - throw new \RuntimeException("Not fully loaded proxy can not be serialized."); - } - return array('name', 'description', 'indicator', 'data', 'id', 'uuid', 'resolution', 'cost'); - } -} \ No newline at end of file diff --git a/backend/lib/Model/Proxies/VolkszaehlerModelChannelSensorProxy.php b/backend/lib/Model/Proxies/VolkszaehlerModelChannelSensorProxy.php deleted file mode 100644 index 996f8ce..0000000 --- a/backend/lib/Model/Proxies/VolkszaehlerModelChannelSensorProxy.php +++ /dev/null @@ -1,93 +0,0 @@ -_entityPersister = $entityPersister; - $this->_identifier = $identifier; - } - private function _load() - { - if (!$this->__isInitialized__ && $this->_entityPersister) { - $this->__isInitialized__ = true; - if ($this->_entityPersister->load($this->_identifier, $this) === null) { - throw new \Doctrine\ORM\EntityNotFoundException(); - } - unset($this->_entityPersister); - unset($this->_identifier); - } - } - - - public function getName() - { - $this->_load(); - return parent::getName(); - } - - public function setName($name) - { - $this->_load(); - return parent::setName($name); - } - - public function getDescription() - { - $this->_load(); - return parent::getDescription(); - } - - public function setDescription($description) - { - $this->_load(); - return parent::setDescription($description); - } - - public function getUnit() - { - $this->_load(); - return parent::getUnit(); - } - - public function addData(\Volkszaehler\Model\Data $data) - { - $this->_load(); - return parent::addData($data); - } - - public function getInterpreter(\Doctrine\ORM\EntityManager $em) - { - $this->_load(); - return parent::getInterpreter($em); - } - - public function getId() - { - $this->_load(); - return parent::getId(); - } - - public function getUuid() - { - $this->_load(); - return parent::getUuid(); - } - - - public function __sleep() - { - if (!$this->__isInitialized__) { - throw new \RuntimeException("Not fully loaded proxy can not be serialized."); - } - return array('name', 'description', 'indicator', 'data', 'id', 'uuid'); - } -} \ No newline at end of file diff --git a/backend/lib/Model/Proxies/VolkszaehlerModelUserProxy.php b/backend/lib/Model/Proxies/VolkszaehlerModelUserProxy.php deleted file mode 100644 index 1881b19..0000000 --- a/backend/lib/Model/Proxies/VolkszaehlerModelUserProxy.php +++ /dev/null @@ -1,75 +0,0 @@ -_entityPersister = $entityPersister; - $this->_identifier = $identifier; - } - private function _load() - { - if (!$this->__isInitialized__ && $this->_entityPersister) { - $this->__isInitialized__ = true; - if ($this->_entityPersister->load($this->_identifier, $this) === null) { - throw new \Doctrine\ORM\EntityNotFoundException(); - } - unset($this->_entityPersister); - unset($this->_identifier); - } - } - - - public function getEmail() - { - $this->_load(); - return parent::getEmail(); - } - - public function setEmail($email) - { - $this->_load(); - return parent::setEmail($email); - } - - public function setPassword($password) - { - $this->_load(); - return parent::setPassword($password); - } - - public function checkPassword($password) - { - $this->_load(); - return parent::checkPassword($password); - } - - public function getId() - { - $this->_load(); - return parent::getId(); - } - - public function getUuid() - { - $this->_load(); - return parent::getUuid(); - } - - - public function __sleep() - { - if (!$this->__isInitialized__) { - throw new \RuntimeException("Not fully loaded proxy can not be serialized."); - } - return array('email', 'password', 'groups', 'id', 'uuid'); - } -} \ No newline at end of file