/** * @param string $email * @return null */ public function setEmail($email) { if (!isset($this->loadedFields['email'])) { $this->loadProperties(); } $oldValue = null; if (array_key_exists('email', $this->loadedValues)) { $oldValue = $this->loadedValues['email']; } if ($oldValue === $email) { $this->email = $email; return; } return parent::setEmail($email); }