vzlogger/backend/lib/Model/Proxy/VolkszaehlerModelPropertyProxy.php

83 lines
1.8 KiB
PHP
Raw Normal View History

2010-07-31 17:52:34 +02:00
<?php
namespace Volkszaehler\Model\Proxy;
2010-07-31 17:52:34 +02:00
/**
* 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);
}
}
2010-09-19 20:39:48 +02:00
public function cast()
{
$this->_load();
return parent::cast();
}
public function validate()
{
$this->_load();
return parent::validate();
}
2010-09-23 00:45:14 +02:00
public function checkRemove()
{
$this->_load();
return parent::checkRemove();
}
public function checkPersist()
{
$this->_load();
return parent::checkPersist();
}
2010-09-19 20:39:48 +02:00
public function getKey()
{
$this->_load();
2010-09-19 20:39:48 +02:00
return parent::getKey();
}
public function getValue()
{
$this->_load();
return parent::getValue();
}
public function getDefinition()
{
$this->_load();
return parent::getDefinition();
}
public function setValue($value)
{
$this->_load();
return parent::setValue($value);
}
2010-07-31 17:52:34 +02:00
public function __sleep()
{
2010-09-19 20:39:48 +02:00
return array('__isInitialized__', 'id', 'key', 'value', 'entity');
2010-07-31 17:52:34 +02:00
}
}