/** * @param ChildPlayers $players The ChildPlayers object to remove. * @return $this|ChildMlbTeamRef The current object (for fluent API support) */ public function removePlayers(ChildPlayers $players) { if ($this->getPlayerss()->contains($players)) { $pos = $this->collPlayerss->search($players); $this->collPlayerss->remove($pos); if (null === $this->playerssScheduledForDeletion) { $this->playerssScheduledForDeletion = clone $this->collPlayerss; $this->playerssScheduledForDeletion->clear(); } $this->playerssScheduledForDeletion[] = $players; $players->setMlbTeamRef(null); } return $this; }
/** * @param ChildRigAttributeValue $rigAttributeValue The ChildRigAttributeValue object to remove. * @return $this|ChildRigAttribute The current object (for fluent API support) */ public function removeRigAttributeValue(ChildRigAttributeValue $rigAttributeValue) { if ($this->getRigAttributeValues()->contains($rigAttributeValue)) { $pos = $this->collRigAttributeValues->search($rigAttributeValue); $this->collRigAttributeValues->remove($pos); if (null === $this->rigAttributeValuesScheduledForDeletion) { $this->rigAttributeValuesScheduledForDeletion = clone $this->collRigAttributeValues; $this->rigAttributeValuesScheduledForDeletion->clear(); } $this->rigAttributeValuesScheduledForDeletion[] = clone $rigAttributeValue; $rigAttributeValue->setRigAttribute(null); } return $this; }
/** * @param ChildBook $book The ChildBook object to remove. * @return $this|ChildPublisher The current object (for fluent API support) */ public function removeBook(ChildBook $book) { if ($this->getBooks()->contains($book)) { $pos = $this->collBooks->search($book); $this->collBooks->remove($pos); if (null === $this->booksScheduledForDeletion) { $this->booksScheduledForDeletion = clone $this->collBooks; $this->booksScheduledForDeletion->clear(); } $this->booksScheduledForDeletion[] = clone $book; $book->setPublisher(null); } return $this; }
/** * @param ChildFitEntry $fitEntry The ChildFitEntry object to remove. * @return $this|ChildFitEntryType The current object (for fluent API support) */ public function removeFitEntry(ChildFitEntry $fitEntry) { if ($this->getFitEntries()->contains($fitEntry)) { $pos = $this->collFitEntries->search($fitEntry); $this->collFitEntries->remove($pos); if (null === $this->fitEntriesScheduledForDeletion) { $this->fitEntriesScheduledForDeletion = clone $this->collFitEntries; $this->fitEntriesScheduledForDeletion->clear(); } $this->fitEntriesScheduledForDeletion[] = clone $fitEntry; $fitEntry->setFitEntryType(null); } return $this; }
/** * @param ChildLanguage $language The ChildLanguage object to remove. * @return $this|ChildLanguageType The current object (for fluent API support) */ public function removeLanguage(ChildLanguage $language) { if ($this->getLanguages()->contains($language)) { $pos = $this->collLanguages->search($language); $this->collLanguages->remove($pos); if (null === $this->languagesScheduledForDeletion) { $this->languagesScheduledForDeletion = clone $this->collLanguages; $this->languagesScheduledForDeletion->clear(); } $this->languagesScheduledForDeletion[] = $language; $language->setType(null); } return $this; }
/** * @param ChildRegionType $type The ChildRegionType object to remove. * @return $this|ChildRegionArea The current object (for fluent API support) */ public function removeType(ChildRegionType $type) { if ($this->getTypes()->contains($type)) { $pos = $this->collTypes->search($type); $this->collTypes->remove($pos); if (null === $this->typesScheduledForDeletion) { $this->typesScheduledForDeletion = clone $this->collTypes; $this->typesScheduledForDeletion->clear(); } $this->typesScheduledForDeletion[] = clone $type; $type->setArea(null); } return $this; }
/** * @param ChildExpertGroupMembers $expertGroupMembers The ChildExpertGroupMembers object to remove. * @return $this|ChildExpertGroup The current object (for fluent API support) */ public function removeExpertGroupMembers(ChildExpertGroupMembers $expertGroupMembers) { if ($this->getExpertGroupMemberss()->contains($expertGroupMembers)) { $pos = $this->collExpertGroupMemberss->search($expertGroupMembers); $this->collExpertGroupMemberss->remove($pos); if (null === $this->expertGroupMemberssScheduledForDeletion) { $this->expertGroupMemberssScheduledForDeletion = clone $this->collExpertGroupMemberss; $this->expertGroupMemberssScheduledForDeletion->clear(); } $this->expertGroupMemberssScheduledForDeletion[] = clone $expertGroupMembers; $expertGroupMembers->setExpertGroup(null); } return $this; }
/** * @param ChildUserAttributeValues $userAttributeValues The ChildUserAttributeValues object to remove. * @return $this|ChildUserAttributes The current object (for fluent API support) */ public function removeUserAttributeValues(ChildUserAttributeValues $userAttributeValues) { if ($this->getUserAttributeValuess()->contains($userAttributeValues)) { $pos = $this->collUserAttributeValuess->search($userAttributeValues); $this->collUserAttributeValuess->remove($pos); if (null === $this->userAttributeValuessScheduledForDeletion) { $this->userAttributeValuessScheduledForDeletion = clone $this->collUserAttributeValuess; $this->userAttributeValuessScheduledForDeletion->clear(); } $this->userAttributeValuessScheduledForDeletion[] = clone $userAttributeValues; $userAttributeValues->setUserAttributes(null); } return $this; }
/** * @param ChildStock $stock The ChildStock object to remove. * @return $this|ChildUnit The current object (for fluent API support) */ public function removeStock(ChildStock $stock) { if ($this->getStocks()->contains($stock)) { $pos = $this->collStocks->search($stock); $this->collStocks->remove($pos); if (null === $this->stocksScheduledForDeletion) { $this->stocksScheduledForDeletion = clone $this->collStocks; $this->stocksScheduledForDeletion->clear(); } $this->stocksScheduledForDeletion[] = $stock; $stock->setUnit(null); } return $this; }
/** * @param ChildInvMetaTypes $invMetaTypes The ChildInvMetaTypes object to remove. * @return $this|ChildInvMetaGroups The current object (for fluent API support) */ public function removeInvMetaTypes(ChildInvMetaTypes $invMetaTypes) { if ($this->getInvMetaTypess()->contains($invMetaTypes)) { $pos = $this->collInvMetaTypess->search($invMetaTypes); $this->collInvMetaTypess->remove($pos); if (null === $this->invMetaTypessScheduledForDeletion) { $this->invMetaTypessScheduledForDeletion = clone $this->collInvMetaTypess; $this->invMetaTypessScheduledForDeletion->clear(); } $this->invMetaTypessScheduledForDeletion[] = clone $invMetaTypes; $invMetaTypes->setInvMetaGroups(null); } return $this; }
/** * @param ChildGroupAccess $groupAccess The ChildGroupAccess object to remove. * @return $this|ChildEntityType The current object (for fluent API support) */ public function removeGroupAccess(ChildGroupAccess $groupAccess) { if ($this->getGroupAccesses()->contains($groupAccess)) { $pos = $this->collGroupAccesses->search($groupAccess); $this->collGroupAccesses->remove($pos); if (null === $this->groupAccessesScheduledForDeletion) { $this->groupAccessesScheduledForDeletion = clone $this->collGroupAccesses; $this->groupAccessesScheduledForDeletion->clear(); } $this->groupAccessesScheduledForDeletion[] = clone $groupAccess; $groupAccess->setEntityType(null); } return $this; }
/** * @param ChildTeams $teams The ChildTeams object to remove. * @return $this|ChildLeagueRef The current object (for fluent API support) */ public function removeTeams(ChildTeams $teams) { if ($this->getTeamss()->contains($teams)) { $pos = $this->collTeamss->search($teams); $this->collTeamss->remove($pos); if (null === $this->teamssScheduledForDeletion) { $this->teamssScheduledForDeletion = clone $this->collTeamss; $this->teamssScheduledForDeletion->clear(); } $this->teamssScheduledForDeletion[] = $teams; $teams->setLeagueRef(null); } return $this; }
/** * @param ChildApplication $application The ChildApplication object to remove. * @return $this|ChildStudent The current object (for fluent API support) */ public function removeApplication(ChildApplication $application) { if ($this->getApplications()->contains($application)) { $pos = $this->collApplications->search($application); $this->collApplications->remove($pos); if (null === $this->applicationsScheduledForDeletion) { $this->applicationsScheduledForDeletion = clone $this->collApplications; $this->applicationsScheduledForDeletion->clear(); } $this->applicationsScheduledForDeletion[] = clone $application; $application->setStudent(null); } return $this; }
/** * Remove role of this object * through the user_role cross reference table. * * @param ChildRole $role * @return ChildUser The current object (for fluent API support) */ public function removeRole(ChildRole $role) { if ($this->getRoles()->contains($role)) { $userRole = new ChildUserRole(); $userRole->setRole($role); if ($role->isUsersLoaded()) { //remove the back reference if available $role->getUsers()->removeObject($this); } $userRole->setUser($this); $this->removeUserRole(clone $userRole); $userRole->clear(); $this->collRoles->remove($this->collRoles->search($role)); if (null === $this->rolesScheduledForDeletion) { $this->rolesScheduledForDeletion = clone $this->collRoles; $this->rolesScheduledForDeletion->clear(); } $this->rolesScheduledForDeletion->push($role); } return $this; }
/** * Remove user of this object * through the user_group cross reference table. * * @param ChildUser $user * @return ChildGroup The current object (for fluent API support) */ public function removeUser(ChildUser $user) { if ($this->getUsers()->contains($user)) { $userGroup = new ChildUserGroup(); $userGroup->setUser($user); if ($user->isGroupsLoaded()) { //remove the back reference if available $user->getGroups()->removeObject($this); } $userGroup->setGroup($this); $this->removeUserGroup(clone $userGroup); $userGroup->clear(); $this->collUsers->remove($this->collUsers->search($user)); if (null === $this->usersScheduledForDeletion) { $this->usersScheduledForDeletion = clone $this->collUsers; $this->usersScheduledForDeletion->clear(); } $this->usersScheduledForDeletion->push($user); } return $this; }
/** * Remove a ChildProductSaleElements object to this object * through the product_sale_elements_product_image cross reference table. * * @param ChildProductSaleElements $productSaleElements The ChildProductSaleElementsProductImage object to relate * @return ChildProductImage The current object (for fluent API support) */ public function removeProductSaleElements(ChildProductSaleElements $productSaleElements) { if ($this->getProductSaleElementss()->contains($productSaleElements)) { $this->collProductSaleElementss->remove($this->collProductSaleElementss->search($productSaleElements)); if (null === $this->productSaleElementssScheduledForDeletion) { $this->productSaleElementssScheduledForDeletion = clone $this->collProductSaleElementss; $this->productSaleElementssScheduledForDeletion->clear(); } $this->productSaleElementssScheduledForDeletion[] = $productSaleElements; } return $this; }
/** * Remove a ChildProfile object to this object * through the profile_resource cross reference table. * * @param ChildProfile $profile The ChildProfileResource object to relate * @return ChildResource The current object (for fluent API support) */ public function removeProfile(ChildProfile $profile) { if ($this->getProfiles()->contains($profile)) { $this->collProfiles->remove($this->collProfiles->search($profile)); if (null === $this->profilesScheduledForDeletion) { $this->profilesScheduledForDeletion = clone $this->collProfiles; $this->profilesScheduledForDeletion->clear(); } $this->profilesScheduledForDeletion[] = $profile; } return $this; }
/** * @param ExportCategoryI18n $exportCategoryI18n The exportCategoryI18n object to remove. * @return ChildExportCategory The current object (for fluent API support) */ public function removeExportCategoryI18n($exportCategoryI18n) { if ($this->getExportCategoryI18ns()->contains($exportCategoryI18n)) { $this->collExportCategoryI18ns->remove($this->collExportCategoryI18ns->search($exportCategoryI18n)); if (null === $this->exportCategoryI18nsScheduledForDeletion) { $this->exportCategoryI18nsScheduledForDeletion = clone $this->collExportCategoryI18ns; $this->exportCategoryI18nsScheduledForDeletion->clear(); } $this->exportCategoryI18nsScheduledForDeletion[] = clone $exportCategoryI18n; $exportCategoryI18n->setExportCategory(null); } return $this; }
/** * @param OrderProductTax $orderProductTax The orderProductTax object to remove. * @return ChildOrderProduct The current object (for fluent API support) */ public function removeOrderProductTax($orderProductTax) { if ($this->getOrderProductTaxes()->contains($orderProductTax)) { $this->collOrderProductTaxes->remove($this->collOrderProductTaxes->search($orderProductTax)); if (null === $this->orderProductTaxesScheduledForDeletion) { $this->orderProductTaxesScheduledForDeletion = clone $this->collOrderProductTaxes; $this->orderProductTaxesScheduledForDeletion->clear(); } $this->orderProductTaxesScheduledForDeletion[] = clone $orderProductTax; $orderProductTax->setOrderProduct(null); } return $this; }
/** * @param OrderVersion $orderVersion The orderVersion object to remove. * @return ChildOrder The current object (for fluent API support) */ public function removeOrderVersion($orderVersion) { if ($this->getOrderVersions()->contains($orderVersion)) { $this->collOrderVersions->remove($this->collOrderVersions->search($orderVersion)); if (null === $this->orderVersionsScheduledForDeletion) { $this->orderVersionsScheduledForDeletion = clone $this->collOrderVersions; $this->orderVersionsScheduledForDeletion->clear(); } $this->orderVersionsScheduledForDeletion[] = clone $orderVersion; $orderVersion->setOrder(null); } return $this; }
/** * @param Childтипытехникимтр $�ипытехникимтр The Childтипытехникимтр object to remove. * @return $this|Childотображаемыетипытехникимтр The current object (for fluent API support) */ public function removeтипытехникимтр(Childтипытехникимтр $�ипытехникимтр) { if ($this->getтипытехникимтрs()->contains($�ипытехникимтр)) { $pos = $this->collтипытехникимтрs->search($�ипытехникимтр); $this->collтипытехникимтрs->remove($pos); if (null === $this->�ипытехникимтрsScheduledForDeletion) { $this->�ипытехникимтрsScheduledForDeletion = clone $this->collтипытехникимтрs; $this->�ипытехникимтрsScheduledForDeletion->clear(); } $this->�ипытехникимтрsScheduledForDeletion[] = clone $�ипытехникимтр; $�ипытехникимтр->setотображаемыетипытехникимтр(null); } return $this; }
/** * @param ChildJaPaginaCategorias $jaPaginaCategorias The ChildJaPaginaCategorias object to remove. * @return $this|ChildJaCategorias The current object (for fluent API support) */ public function removeJaPaginaCategorias(ChildJaPaginaCategorias $jaPaginaCategorias) { if ($this->getJaPaginaCategoriass()->contains($jaPaginaCategorias)) { $pos = $this->collJaPaginaCategoriass->search($jaPaginaCategorias); $this->collJaPaginaCategoriass->remove($pos); if (null === $this->jaPaginaCategoriassScheduledForDeletion) { $this->jaPaginaCategoriassScheduledForDeletion = clone $this->collJaPaginaCategoriass; $this->jaPaginaCategoriassScheduledForDeletion->clear(); } $this->jaPaginaCategoriassScheduledForDeletion[] = $jaPaginaCategorias; $jaPaginaCategorias->setJaCategorias(null); } return $this; }
/** * @param OrderRelatedByDeliveryOrderAddressId $orderRelatedByDeliveryOrderAddressId The orderRelatedByDeliveryOrderAddressId object to remove. * @return ChildOrderAddress The current object (for fluent API support) */ public function removeOrderRelatedByDeliveryOrderAddressId($orderRelatedByDeliveryOrderAddressId) { if ($this->getOrdersRelatedByDeliveryOrderAddressId()->contains($orderRelatedByDeliveryOrderAddressId)) { $this->collOrdersRelatedByDeliveryOrderAddressId->remove($this->collOrdersRelatedByDeliveryOrderAddressId->search($orderRelatedByDeliveryOrderAddressId)); if (null === $this->ordersRelatedByDeliveryOrderAddressIdScheduledForDeletion) { $this->ordersRelatedByDeliveryOrderAddressIdScheduledForDeletion = clone $this->collOrdersRelatedByDeliveryOrderAddressId; $this->ordersRelatedByDeliveryOrderAddressIdScheduledForDeletion->clear(); } $this->ordersRelatedByDeliveryOrderAddressIdScheduledForDeletion[] = clone $orderRelatedByDeliveryOrderAddressId; $orderRelatedByDeliveryOrderAddressId->setOrderAddressRelatedByDeliveryOrderAddressId(null); } return $this; }
/** * @param MenuItemI18nVersion $menuItemI18nVersion The menuItemI18nVersion object to remove. * @return ChildMenuItemI18n The current object (for fluent API support) */ public function removeMenuItemI18nVersion($menuItemI18nVersion) { if ($this->getMenuItemI18nVersions()->contains($menuItemI18nVersion)) { $this->collMenuItemI18nVersions->remove($this->collMenuItemI18nVersions->search($menuItemI18nVersion)); if (null === $this->menuItemI18nVersionsScheduledForDeletion) { $this->menuItemI18nVersionsScheduledForDeletion = clone $this->collMenuItemI18nVersions; $this->menuItemI18nVersionsScheduledForDeletion->clear(); } $this->menuItemI18nVersionsScheduledForDeletion[] = clone $menuItemI18nVersion; $menuItemI18nVersion->setMenuItemI18n(null); } return $this; }
/** * @param ChildUser $user The ChildUser object to remove. * @return $this|ChildFile The current object (for fluent API support) */ public function removeUser(ChildUser $user) { if ($this->getUsers()->contains($user)) { $pos = $this->collUsers->search($user); $this->collUsers->remove($pos); if (null === $this->usersScheduledForDeletion) { $this->usersScheduledForDeletion = clone $this->collUsers; $this->usersScheduledForDeletion->clear(); } $this->usersScheduledForDeletion[] = $user; $user->setFile(null); } return $this; }
/** * @param ChildTip $tip The ChildTip object to remove. * @return $this|ChildMatch The current object (for fluent API support) */ public function removeTip(ChildTip $tip) { if ($this->getTips()->contains($tip)) { $pos = $this->collTips->search($tip); $this->collTips->remove($pos); if (null === $this->tipsScheduledForDeletion) { $this->tipsScheduledForDeletion = clone $this->collTips; $this->tipsScheduledForDeletion->clear(); } $this->tipsScheduledForDeletion[] = clone $tip; $tip->setMatch(null); } return $this; }
/** * @param ChildApplicationRequest $applicationRequest The ChildApplicationRequest object to remove. * @return $this|ChildApplication The current object (for fluent API support) */ public function removeApplicationRequest(ChildApplicationRequest $applicationRequest) { if ($this->getApplicationRequests()->contains($applicationRequest)) { $pos = $this->collApplicationRequests->search($applicationRequest); $this->collApplicationRequests->remove($pos); if (null === $this->applicationRequestsScheduledForDeletion) { $this->applicationRequestsScheduledForDeletion = clone $this->collApplicationRequests; $this->applicationRequestsScheduledForDeletion->clear(); } $this->applicationRequestsScheduledForDeletion[] = $applicationRequest; $applicationRequest->setApplication(null); } return $this; }
/** * @param ChildShared $shared The ChildShared object to remove. * @return $this|ChildNote The current object (for fluent API support) */ public function removeShared(ChildShared $shared) { if ($this->getShareds()->contains($shared)) { $pos = $this->collShareds->search($shared); $this->collShareds->remove($pos); if (null === $this->sharedsScheduledForDeletion) { $this->sharedsScheduledForDeletion = clone $this->collShareds; $this->sharedsScheduledForDeletion->clear(); } $this->sharedsScheduledForDeletion[] = clone $shared; $shared->setNote(null); } return $this; }
/** * Remove a ChildFolder object to this object * through the content_folder cross reference table. * * @param ChildFolder $folder The ChildContentFolder object to relate * @return ChildContent The current object (for fluent API support) */ public function removeFolder(ChildFolder $folder) { if ($this->getFolders()->contains($folder)) { $this->collFolders->remove($this->collFolders->search($folder)); if (null === $this->foldersScheduledForDeletion) { $this->foldersScheduledForDeletion = clone $this->collFolders; $this->foldersScheduledForDeletion->clear(); } $this->foldersScheduledForDeletion[] = $folder; } return $this; }
/** * Remove a ChildCoupon object to this object * through the coupon_customer_count cross reference table. * * @param ChildCoupon $coupon The ChildCouponCustomerCount object to relate * @return ChildCustomer The current object (for fluent API support) */ public function removeCoupon(ChildCoupon $coupon) { if ($this->getCoupons()->contains($coupon)) { $this->collCoupons->remove($this->collCoupons->search($coupon)); if (null === $this->couponsScheduledForDeletion) { $this->couponsScheduledForDeletion = clone $this->collCoupons; $this->couponsScheduledForDeletion->clear(); } $this->couponsScheduledForDeletion[] = $coupon; } return $this; }