vzlogger/backend/lib/Model/Proxies/VolkszaehlerModelEntityProxy.php
Steffen Vogel f9e8f22798 huge commit for doctrine integration
starting adding support for multiple APIs
2010-07-18 17:12:00 +02:00

51 lines
No EOL
1.3 KiB
PHP

<?php
namespace Volkszaehler\Model\Proxies;
/**
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
*/
class VolkszaehlerModelEntityProxy extends \Volkszaehler\Model\Entity 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);
unset($this->_identifier);
}
}
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();
}
}