public function setAttribute($attribute, $value) { switch ($attribute) { case $this->AuthenticationAuthority->getField('email'): $this->setEmail($value); break; case $this->AuthenticationAuthority->getField('lastname'): $this->setLastName($value); break; case $this->AuthenticationAuthority->getField('firstname'): $this->setFirstName($value); break; case $this->AuthenticationAuthority->getField('uid'): $this->setUserID($value); break; default: parent::setAttribute($attribute, $value); break; } }