updated proxies
This commit is contained in:
parent
0cca2826bd
commit
67a8b1b9ca
6 changed files with 206 additions and 38 deletions
|
@ -22,8 +22,7 @@ class VolkszaehlerModelChannelProxy extends \Volkszaehler\Model\Channel implemen
|
|||
if ($this->_entityPersister->load($this->_identifier, $this) === null) {
|
||||
throw new \Doctrine\ORM\EntityNotFoundException();
|
||||
}
|
||||
unset($this->_entityPersister);
|
||||
unset($this->_identifier);
|
||||
unset($this->_entityPersister, $this->_identifier);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -34,10 +33,10 @@ class VolkszaehlerModelChannelProxy extends \Volkszaehler\Model\Channel implemen
|
|||
return parent::addData($data);
|
||||
}
|
||||
|
||||
public function getInterpreter(\Doctrine\ORM\EntityManager $em)
|
||||
public function getInterpreter(\Doctrine\ORM\EntityManager $em, $from, $to)
|
||||
{
|
||||
$this->_load();
|
||||
return parent::getInterpreter($em);
|
||||
return parent::getInterpreter($em, $from, $to);
|
||||
}
|
||||
|
||||
public function getName()
|
||||
|
@ -64,18 +63,6 @@ class VolkszaehlerModelChannelProxy extends \Volkszaehler\Model\Channel implemen
|
|||
return parent::setDescription($description);
|
||||
}
|
||||
|
||||
public function getUnit()
|
||||
{
|
||||
$this->_load();
|
||||
return parent::getUnit();
|
||||
}
|
||||
|
||||
public function getIndicator()
|
||||
{
|
||||
$this->_load();
|
||||
return parent::getIndicator();
|
||||
}
|
||||
|
||||
public function getResolution()
|
||||
{
|
||||
$this->_load();
|
||||
|
@ -100,6 +87,48 @@ class VolkszaehlerModelChannelProxy extends \Volkszaehler\Model\Channel implemen
|
|||
return parent::setCost($cost);
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
$this->_load();
|
||||
return parent::getType();
|
||||
}
|
||||
|
||||
public function getUnit()
|
||||
{
|
||||
$this->_load();
|
||||
return parent::getUnit();
|
||||
}
|
||||
|
||||
public function getIndicator()
|
||||
{
|
||||
$this->_load();
|
||||
return parent::getIndicator();
|
||||
}
|
||||
|
||||
public function validateToken($token)
|
||||
{
|
||||
$this->_load();
|
||||
return parent::validateToken($token);
|
||||
}
|
||||
|
||||
public function getToken()
|
||||
{
|
||||
$this->_load();
|
||||
return parent::getToken();
|
||||
}
|
||||
|
||||
public function getProperty($name)
|
||||
{
|
||||
$this->_load();
|
||||
return parent::getProperty($name);
|
||||
}
|
||||
|
||||
public function setProperty($name)
|
||||
{
|
||||
$this->_load();
|
||||
return parent::setProperty($name);
|
||||
}
|
||||
|
||||
public function getId()
|
||||
{
|
||||
$this->_load();
|
||||
|
@ -115,9 +144,6 @@ class VolkszaehlerModelChannelProxy extends \Volkszaehler\Model\Channel implemen
|
|||
|
||||
public function __sleep()
|
||||
{
|
||||
if (!$this->__isInitialized__) {
|
||||
throw new \RuntimeException("Not fully loaded proxy can not be serialized.");
|
||||
}
|
||||
return array('name', 'description', 'indicator', 'data', 'resolution', 'cost', 'groups', 'id', 'uuid');
|
||||
return array('__isInitialized__', 'id', 'uuid', 'tokens', 'properties', 'data', 'groups');
|
||||
}
|
||||
}
|
|
@ -22,12 +22,17 @@ class VolkszaehlerModelDataProxy extends \Volkszaehler\Model\Data implements \Do
|
|||
if ($this->_entityPersister->load($this->_identifier, $this) === null) {
|
||||
throw new \Doctrine\ORM\EntityNotFoundException();
|
||||
}
|
||||
unset($this->_entityPersister);
|
||||
unset($this->_identifier);
|
||||
unset($this->_entityPersister, $this->_identifier);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function toArray()
|
||||
{
|
||||
$this->_load();
|
||||
return parent::toArray();
|
||||
}
|
||||
|
||||
public function getValue()
|
||||
{
|
||||
$this->_load();
|
||||
|
@ -49,9 +54,6 @@ class VolkszaehlerModelDataProxy extends \Volkszaehler\Model\Data implements \Do
|
|||
|
||||
public function __sleep()
|
||||
{
|
||||
if (!$this->__isInitialized__) {
|
||||
throw new \RuntimeException("Not fully loaded proxy can not be serialized.");
|
||||
}
|
||||
return array('timestamp', 'value', 'channel');
|
||||
return array('__isInitialized__', 'id', 'timestamp', 'value', 'channel');
|
||||
}
|
||||
}
|
|
@ -22,12 +22,35 @@ class VolkszaehlerModelEntityProxy extends \Volkszaehler\Model\Entity implements
|
|||
if ($this->_entityPersister->load($this->_identifier, $this) === null) {
|
||||
throw new \Doctrine\ORM\EntityNotFoundException();
|
||||
}
|
||||
unset($this->_entityPersister);
|
||||
unset($this->_identifier);
|
||||
unset($this->_entityPersister, $this->_identifier);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function validateToken($token)
|
||||
{
|
||||
$this->_load();
|
||||
return parent::validateToken($token);
|
||||
}
|
||||
|
||||
public function getToken()
|
||||
{
|
||||
$this->_load();
|
||||
return parent::getToken();
|
||||
}
|
||||
|
||||
public function getProperty($name)
|
||||
{
|
||||
$this->_load();
|
||||
return parent::getProperty($name);
|
||||
}
|
||||
|
||||
public function setProperty($name)
|
||||
{
|
||||
$this->_load();
|
||||
return parent::setProperty($name);
|
||||
}
|
||||
|
||||
public function getId()
|
||||
{
|
||||
$this->_load();
|
||||
|
@ -43,9 +66,6 @@ class VolkszaehlerModelEntityProxy extends \Volkszaehler\Model\Entity implements
|
|||
|
||||
public function __sleep()
|
||||
{
|
||||
if (!$this->__isInitialized__) {
|
||||
throw new \RuntimeException("Not fully loaded proxy can not be serialized.");
|
||||
}
|
||||
return array();
|
||||
return array('__isInitialized__', 'id', 'uuid', 'tokens', 'properties');
|
||||
}
|
||||
}
|
|
@ -22,8 +22,7 @@ class VolkszaehlerModelGroupProxy extends \Volkszaehler\Model\Group implements \
|
|||
if ($this->_entityPersister->load($this->_identifier, $this) === null) {
|
||||
throw new \Doctrine\ORM\EntityNotFoundException();
|
||||
}
|
||||
unset($this->_entityPersister);
|
||||
unset($this->_identifier);
|
||||
unset($this->_entityPersister, $this->_identifier);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -34,12 +33,24 @@ class VolkszaehlerModelGroupProxy extends \Volkszaehler\Model\Group implements \
|
|||
return parent::addGroup($child);
|
||||
}
|
||||
|
||||
public function removeGroup(\Volkszaehler\Model\Group $child)
|
||||
{
|
||||
$this->_load();
|
||||
return parent::removeGroup($child);
|
||||
}
|
||||
|
||||
public function addChannel(\Volkszaehler\Model\Channel $child)
|
||||
{
|
||||
$this->_load();
|
||||
return parent::addChannel($child);
|
||||
}
|
||||
|
||||
public function removeChannel(\Volkszaehler\Model\Channel $child)
|
||||
{
|
||||
$this->_load();
|
||||
return parent::removeChannel($child);
|
||||
}
|
||||
|
||||
public function getName()
|
||||
{
|
||||
$this->_load();
|
||||
|
@ -82,6 +93,36 @@ class VolkszaehlerModelGroupProxy extends \Volkszaehler\Model\Group implements \
|
|||
return parent::getChannels();
|
||||
}
|
||||
|
||||
public function getInterpreter(\Doctrine\ORM\EntityManager $em)
|
||||
{
|
||||
$this->_load();
|
||||
return parent::getInterpreter($em);
|
||||
}
|
||||
|
||||
public function validateToken($token)
|
||||
{
|
||||
$this->_load();
|
||||
return parent::validateToken($token);
|
||||
}
|
||||
|
||||
public function getToken()
|
||||
{
|
||||
$this->_load();
|
||||
return parent::getToken();
|
||||
}
|
||||
|
||||
public function getProperty($name)
|
||||
{
|
||||
$this->_load();
|
||||
return parent::getProperty($name);
|
||||
}
|
||||
|
||||
public function setProperty($name)
|
||||
{
|
||||
$this->_load();
|
||||
return parent::setProperty($name);
|
||||
}
|
||||
|
||||
public function getId()
|
||||
{
|
||||
$this->_load();
|
||||
|
@ -97,9 +138,6 @@ class VolkszaehlerModelGroupProxy extends \Volkszaehler\Model\Group implements \
|
|||
|
||||
public function __sleep()
|
||||
{
|
||||
if (!$this->__isInitialized__) {
|
||||
throw new \RuntimeException("Not fully loaded proxy can not be serialized.");
|
||||
}
|
||||
return array('name', 'description', 'channels', 'children', 'parents', 'id', 'uuid');
|
||||
return array('__isInitialized__', 'id', 'uuid', 'tokens', 'properties', 'channels', 'children', 'parents');
|
||||
}
|
||||
}
|
35
backend/lib/Model/Proxies/VolkszaehlerModelPropertyProxy.php
Normal file
35
backend/lib/Model/Proxies/VolkszaehlerModelPropertyProxy.php
Normal file
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
|
||||
namespace Volkszaehler\Model\Proxies;
|
||||
|
||||
/**
|
||||
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
|
||||
*/
|
||||
class VolkszaehlerModelPropertyProxy extends \Volkszaehler\Model\Property implements \Doctrine\ORM\Proxy\Proxy
|
||||
{
|
||||
private $_entityPersister;
|
||||
private $_identifier;
|
||||
public $__isInitialized__ = false;
|
||||
public function __construct($entityPersister, $identifier)
|
||||
{
|
||||
$this->_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, $this->_identifier);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function __sleep()
|
||||
{
|
||||
return array('__isInitialized__', 'id', 'name', 'value', 'entity');
|
||||
}
|
||||
}
|
47
backend/lib/Model/Proxies/VolkszaehlerModelTokenProxy.php
Normal file
47
backend/lib/Model/Proxies/VolkszaehlerModelTokenProxy.php
Normal file
|
@ -0,0 +1,47 @@
|
|||
<?php
|
||||
|
||||
namespace Volkszaehler\Model\Proxies;
|
||||
|
||||
/**
|
||||
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
|
||||
*/
|
||||
class VolkszaehlerModelTokenProxy extends \Volkszaehler\Model\Token implements \Doctrine\ORM\Proxy\Proxy
|
||||
{
|
||||
private $_entityPersister;
|
||||
private $_identifier;
|
||||
public $__isInitialized__ = false;
|
||||
public function __construct($entityPersister, $identifier)
|
||||
{
|
||||
$this->_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, $this->_identifier);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
$this->_load();
|
||||
return parent::__toString();
|
||||
}
|
||||
|
||||
public function getToken()
|
||||
{
|
||||
$this->_load();
|
||||
return parent::getToken();
|
||||
}
|
||||
|
||||
|
||||
public function __sleep()
|
||||
{
|
||||
return array('__isInitialized__', 'id', 'token', 'valid', 'entity');
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue