/** * Gets the associated Profile * @return \login\user\Profile */ public function getProfile() { $profile = new \login\user\Profile($this->db); if (array_key_exists('profile_id', $this->data)) { $profile->loadFromId($this->data['profile_id']); } return $profile; }
/** * Gets the associated Profile * @return \login\user\Profile */ public function getProfile() { $profile = new \login\user\Profile($this->db); $profile->loadFromId($this->data['profile_id']); return $profile; }