_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 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(); return parent::getId(); } public function getUuid() { $this->_load(); return parent::getUuid(); } public function __sleep() { return array('__isInitialized__', 'id', 'uuid', 'tokens', 'properties'); } }