public function removeRole($role) { $role = $this->roles->filter(function (Role $r) use($role) { if ($role instanceof Role) { return $r->getRole() === $role->getRole(); } else { return $r->getRole() === strtoupper($role); } })->first(); if ($role) { $this->roles->removeElement($role); } return $this; }
/** * Remove contracts * * @param \App\MainBundle\Entity\Contract $contracts */ public function removeContract(\App\MainBundle\Entity\Contract $contracts) { $this->contracts->removeElement($contracts); }
/** * Remove childTask * * @param \Est\AppBundle\Entity\Task $childTask */ public function removeChildTask(\Est\AppBundle\Entity\Task $childTask) { $this->childTasks->removeElement($childTask); }
/** * Remove produits * * @param \Ecommerce\EcommerceBundle\Entity\Fournisseur $produits */ public function removeProduit(\Ecommerce\EcommerceBundle\Entity\Fournisseur $produits) { $this->produits->removeElement($produits); }
public function removeRuleGroup(RuleGroup $ruleGroup) { return $this->ruleGroups->removeElement($ruleGroup); }
/** * Remove car * * @param \AppBundle\Entity\Car $cars */ public function removeCar(\AppBundle\Entity\Car $car) { $this->cars->removeElement($car); }
/** * Remove cita * * @param \AppBundle\Entity\Cita $cita */ public function removeCita(\AppBundle\Entity\Cita $cita) { $this->citas->removeElement($cita); }
/** * Remove files * * @param \AppBundle\Entity\FileQuestion $files */ public function removeFile(\AppBundle\Entity\FileQuestion $files) { $this->files->removeElement($files); }
/** * Remove pages * * @param \alkr\CMSBundle\Entity\Page $pages */ public function removePage(\alkr\CMSBundle\Entity\Page $pages) { $this->pages->removeElement($pages); }
/** * Remove edificio * * @param \AppBundle\Entity\Edificio $edificio */ public function removeEdificio(\AppBundle\Entity\Edificio $edificio) { $this->edificios->removeElement($edificio); }
/** * Remove photos * * @param \alkr\CMSBundle\Entity\Photo $photos */ public function removePhoto(\alkr\CMSBundle\Entity\Photo $photos) { $this->photos->removeElement($photos); }
/** * Remove users * * @param \Vlad\BugtrackerBundle\Entity\User $users */ public function removeUser(\Vlad\BugtrackerBundle\Entity\User $users) { $this->users->removeElement($users); }
/** * Remove transmitters * * @param TransmitterInterface $transmitters */ public function removeTransmitter(TransmitterInterface $transmitters) { $this->transmitters->removeElement($transmitters); }
/** * Remove variantChildren * * @param Page $variantChildren */ public function removeVariantChild(Page $variantChildren) { $this->variantChildren->removeElement($variantChildren); }
/** * (non-PHPdoc) * @see \MB\DashboardBundle\Model\Project\SourceGroupInterface::removeProject() */ public function removeProject(\MB\DashboardBundle\Entity\Project $project) { $this->projects->removeElement($project); }
/** {@inheritDoc} */ public function removeElement($element) { $this->initialize(); $this->isDirty = true; return $this->collection->removeElement($element); }
/** * Remove reviews * * @param \UserBundle\Entity\Review $reviews */ public function removeReview(\ReviewsBundle\Entity\Review $reviews) { $this->reviews->removeElement($reviews); }
/** * Remove refuel. * * @param Refuel $refuel */ public function removeRefuel(Refuel $refuel) { $this->refuels->removeElement($refuel); }
/** * Remove instagramComment * * @param \Headoo\MediaSocialApiBundle\Entity\InstagramComment $instagramComment */ public function removeInstagramComment(\Headoo\MediaSocialApiBundle\Entity\InstagramComment $instagramComment) { $this->instagramComment->removeElement($instagramComment); }
public function removeNotification(\Sopinet\Bundle\UserNotificationsBundle\Entity\Notification $notification) { $this->notifications->removeElement($notification); }
/** * Remove role * * @param \Bigfish\Bundle\UserBundle\Entity\Role $role */ public function removeRole(\Bigfish\Bundle\UserBundle\Entity\Role $role) { $this->role->removeElement($role); }
/** * Remove archive * * @param \DocBundle\Entity\ArchiveParam $archive */ public function removeArchive(\DocBundle\Entity\ArchiveParam $archive) { $this->archives->removeElement($archive); }
/** * Remove employees * * @param \Flyers\PlanITBundle\Entity\Employee $employees */ public function removeEmployee(\Flyers\PlanITBundle\Entity\Employee $employees) { $this->employees->removeElement($employees); }
public function removeUserValue(\Sopinet\UserPreferencesBundle\Entity\UserValue $userValue) { $this->uservalues->removeElement($userValue); }
/** * Remove failure * * @param Loginfailure $failure */ public function removeFailure(Loginfailure $failure) { $this->failures->removeElement($failure); }
/** * Remove children * * @param \Flyers\PlanITBundle\Entity\Task $children */ public function removeChildren(\Flyers\PlanITBundle\Entity\Task $children) { $this->children->removeElement($children); }
/** * Remove product * * @param \AppBundle\Entity\Product $product */ public function removeProduct(\AppBundle\Entity\Product $product) { $this->products->removeElement($product); }
/** * Remove project * * @param \Backend\AdminBundle\Entity\Project $project */ public function removeProject(\Backend\AdminBundle\Entity\Project $project) { $this->projects->removeElement($project); }
/** * Remove tweetPlace * * @param \Headoo\MediaSocialApiBundle\Entity\TweetPlace $tweetPlace */ public function removeTweetPlace(\Headoo\MediaSocialApiBundle\Entity\TweetPlace $tweetPlace) { $this->tweetPlace->removeElement($tweetPlace); }
/** * Remove charges * * @param \Flyers\PlanITBundle\Entity\Charge $charges */ public function removeCharge(\Flyers\PlanITBundle\Entity\Charge $charges) { $this->charges->removeElement($charges); }