Example #1
0
 /**
  * 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;
 }
Example #2
0
 /**
  * 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;
 }