/** * Return the username as unique alias * * (non-PHPdoc) * @see AnDomainEntityAbstract::__get() */ public function __get($key) { if ($key == 'uniqueAlias') { return $this->username; } return parent::__get($key); }