3 namespace DoctrineProxies\__CG__\Valuation\Entity;
6 * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
8 class CustomerPublicValuation extends \Valuation\Entity\CustomerPublicValuation implements \Doctrine\ORM\Proxy\Proxy
11 * @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
12 * three parameters, being respectively the proxy object to be initialized, the method that triggered the
13 * initialization process and an array of ordered parameters that were passed to that method.
15 * @see \Doctrine\Common\Persistence\Proxy::__setInitializer
17 public $__initializer__;
20 * @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
22 * @see \Doctrine\Common\Persistence\Proxy::__setCloner
27 * @var boolean flag indicating if this object was already initialized
29 * @see \Doctrine\Common\Persistence\Proxy::__isInitialized
31 public $__isInitialized__ = false;
34 * @var array properties to be lazy loaded, with keys being the property
35 * names and values being their default values
37 * @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
39 public static $lazyPropertiesDefaults = array();
44 * @param \Closure $initializer
45 * @param \Closure $cloner
47 public function __construct($initializer = null, $cloner = null)
50 $this->__initializer__ = $initializer;
51 $this->__cloner__ = $cloner;
58 public function __get($name)
60 $this->__initializer__ && $this->__initializer__->__invoke($this, '__get', array($name));
62 return parent::__get($name);
73 public function __sleep()
75 if ($this->__isInitialized__) {
76 return array('__isInitialized__', 'id', 'customerHash', 'stock', 'valuation', 'created', 'updated', 'archived');
79 return array('__isInitialized__', 'id', 'customerHash', 'stock', 'valuation', 'created', 'updated', 'archived');
85 public function __wakeup()
87 if ( ! $this->__isInitialized__) {
88 $this->__initializer__ = function (CustomerPublicValuation $proxy) {
89 $proxy->__setInitializer(null);
90 $proxy->__setCloner(null);
92 $existingProperties = get_object_vars($proxy);
94 foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
95 if ( ! array_key_exists($property, $existingProperties)) {
96 $proxy->$property = $defaultValue;
107 public function __clone()
109 $this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', array());
113 * Forces initialization of the proxy
115 public function __load()
117 $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());
122 * @internal generated method: use only when explicitly handling proxy specific loading logic
124 public function __isInitialized()
126 return $this->__isInitialized__;
131 * @internal generated method: use only when explicitly handling proxy specific loading logic
133 public function __setInitialized($initialized)
135 $this->__isInitialized__ = $initialized;
140 * @internal generated method: use only when explicitly handling proxy specific loading logic
142 public function __setInitializer(\Closure $initializer = null)
144 $this->__initializer__ = $initializer;
149 * @internal generated method: use only when explicitly handling proxy specific loading logic
151 public function __getInitializer()
153 return $this->__initializer__;
158 * @internal generated method: use only when explicitly handling proxy specific loading logic
160 public function __setCloner(\Closure $cloner = null)
162 $this->__cloner__ = $cloner;
167 * @internal generated method: use only when explicitly handling proxy specific cloning logic
169 public function __getCloner()
171 return $this->__cloner__;
176 * @internal generated method: use only when explicitly handling proxy specific loading logic
179 public function __getLazyProperties()
181 return self::$lazyPropertiesDefaults;
188 public function setCreateTime()
191 $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreateTime', array());
193 return parent::setCreateTime();
199 public function setUpdateTime()
202 $this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdateTime', array());
204 return parent::setUpdateTime();
210 public function toArray(array $expand = array (
211 ), array $intersect = array (
212 ), $showIdentifiers = false, $expandAll = 0)
215 $this->__initializer__ && $this->__initializer__->__invoke($this, 'toArray', array($expand, $intersect, $showIdentifiers, $expandAll));
217 return parent::toArray($expand, $intersect, $showIdentifiers, $expandAll);
223 public function fromArray($data = array (
227 $this->__initializer__ && $this->__initializer__->__invoke($this, 'fromArray', array($data));
229 return parent::fromArray($data);