/** * @param UserOrganization $userOrganization The userOrganization object to add. */ protected function doAddUserOrganization($userOrganization) { $this->collUserOrganizations[] = $userOrganization; $userOrganization->setUser($this); }
/** * @param User $user The user object to add. */ protected function doAddUser($user) { $userOrganization = new UserOrganization(); $userOrganization->setUser($user); $this->addUserOrganization($userOrganization); }