Пример #1
0
 /**
  * @param	UserOrganization $userOrganization The userOrganization object to add.
  */
 protected function doAddUserOrganization($userOrganization)
 {
     $this->collUserOrganizations[] = $userOrganization;
     $userOrganization->setUser($this);
 }
Пример #2
0
 /**
  * @param	User $user The user object to add.
  */
 protected function doAddUser($user)
 {
     $userOrganization = new UserOrganization();
     $userOrganization->setUser($user);
     $this->addUserOrganization($userOrganization);
 }