3 namespace DoctrineProxies\__CG__\User\Entity;
6 * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
8 class Profile extends \User\Entity\Profile 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);
70 public function __set($name, $value)
72 $this->__initializer__ && $this->__initializer__->__invoke($this, '__set', array($name, $value));
74 return parent::__set($name, $value);
83 public function __sleep()
85 if ($this->__isInitialized__) {
86 return array('__isInitialized__', 'id', 'email', 'password', 'salt', 'firstName', 'familyName', 'idNumber', 'dateOfBirth', 'mobile', 'company', 'sudo', 'manager', 'region', 'group', 'groupDivision', 'userType', 'position', 'permissions', 'override', 'subscribeNewsletter', 'subscribeReminders', 'lastLogin', 'ipAddress', '' . "\0" . 'User\\Entity\\Profile' . "\0" . 'sessions', '' . "\0" . 'User\\Entity\\Profile' . "\0" . 'logins', 'jobState', 'mainMemberPublicCentre', 'created', 'updated', 'archived');
89 return array('__isInitialized__', 'id', 'email', 'password', 'salt', 'firstName', 'familyName', 'idNumber', 'dateOfBirth', 'mobile', 'company', 'sudo', 'manager', 'region', 'group', 'groupDivision', 'userType', 'position', 'permissions', 'override', 'subscribeNewsletter', 'subscribeReminders', 'lastLogin', 'ipAddress', '' . "\0" . 'User\\Entity\\Profile' . "\0" . 'sessions', '' . "\0" . 'User\\Entity\\Profile' . "\0" . 'logins', 'jobState', 'mainMemberPublicCentre', 'created', 'updated', 'archived');
95 public function __wakeup()
97 if ( ! $this->__isInitialized__) {
98 $this->__initializer__ = function (Profile $proxy) {
99 $proxy->__setInitializer(null);
100 $proxy->__setCloner(null);
102 $existingProperties = get_object_vars($proxy);
104 foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
105 if ( ! array_key_exists($property, $existingProperties)) {
106 $proxy->$property = $defaultValue;
117 public function __clone()
119 $this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', array());
123 * Forces initialization of the proxy
125 public function __load()
127 $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', array());
132 * @internal generated method: use only when explicitly handling proxy specific loading logic
134 public function __isInitialized()
136 return $this->__isInitialized__;
141 * @internal generated method: use only when explicitly handling proxy specific loading logic
143 public function __setInitialized($initialized)
145 $this->__isInitialized__ = $initialized;
150 * @internal generated method: use only when explicitly handling proxy specific loading logic
152 public function __setInitializer(\Closure $initializer = null)
154 $this->__initializer__ = $initializer;
159 * @internal generated method: use only when explicitly handling proxy specific loading logic
161 public function __getInitializer()
163 return $this->__initializer__;
168 * @internal generated method: use only when explicitly handling proxy specific loading logic
170 public function __setCloner(\Closure $cloner = null)
172 $this->__cloner__ = $cloner;
177 * @internal generated method: use only when explicitly handling proxy specific cloning logic
179 public function __getCloner()
181 return $this->__cloner__;
186 * @internal generated method: use only when explicitly handling proxy specific loading logic
189 public function __getLazyProperties()
191 return self::$lazyPropertiesDefaults;
198 public function addSession(\User\Entity\Session $session)
201 $this->__initializer__ && $this->__initializer__->__invoke($this, 'addSession', array($session));
203 return parent::addSession($session);
209 public function getId()
211 if ($this->__isInitialized__ === false) {
212 return (int) parent::getId();
216 $this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', array());
218 return parent::getId();
224 public function setCreateTime()
227 $this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreateTime', array());
229 return parent::setCreateTime();
235 public function setUpdateTime()
238 $this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdateTime', array());
240 return parent::setUpdateTime();
246 public function postUpdate()
249 $this->__initializer__ && $this->__initializer__->__invoke($this, 'postUpdate', array());
251 return parent::postUpdate();
257 public function toArray(array $expand = array (
258 ), array $intersect = array (
259 ), $showIdentifiers = false, $expandAll = 0)
262 $this->__initializer__ && $this->__initializer__->__invoke($this, 'toArray', array($expand, $intersect, $showIdentifiers, $expandAll));
264 return parent::toArray($expand, $intersect, $showIdentifiers, $expandAll);
270 public function fromArray($data = array (
274 $this->__initializer__ && $this->__initializer__->__invoke($this, 'fromArray', array($data));
276 return parent::fromArray($data);
282 public function passwordValid($password)
285 $this->__initializer__ && $this->__initializer__->__invoke($this, 'passwordValid', array($password));
287 return parent::passwordValid($password);