public static function toUserOwnerData(User $user) { return ['id' => $user->getId(), 'type' => $user->getType(), 'official_title' => '', 'first_name' => $user->getFirstName(), 'last_name' => $user->getLastName(), 'avatar_file_path' => $user->getAvatarFileName()]; }
public function getType() { $this->__load(); return parent::getType(); }