Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 /**
  * 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);
 }
Esempio n. 4
0
 /**
  * Remove produits
  *
  * @param \Ecommerce\EcommerceBundle\Entity\Fournisseur $produits
  */
 public function removeProduit(\Ecommerce\EcommerceBundle\Entity\Fournisseur $produits)
 {
     $this->produits->removeElement($produits);
 }
Esempio n. 5
0
 public function removeRuleGroup(RuleGroup $ruleGroup)
 {
     return $this->ruleGroups->removeElement($ruleGroup);
 }
Esempio n. 6
0
 /**
  * Remove car
  *
  * @param \AppBundle\Entity\Car $cars
  */
 public function removeCar(\AppBundle\Entity\Car $car)
 {
     $this->cars->removeElement($car);
 }
Esempio n. 7
0
 /**
  * Remove cita
  *
  * @param \AppBundle\Entity\Cita $cita
  */
 public function removeCita(\AppBundle\Entity\Cita $cita)
 {
     $this->citas->removeElement($cita);
 }
Esempio n. 8
0
 /**
  * Remove files
  *
  * @param \AppBundle\Entity\FileQuestion $files
  */
 public function removeFile(\AppBundle\Entity\FileQuestion $files)
 {
     $this->files->removeElement($files);
 }
Esempio n. 9
0
 /**
  * Remove pages
  *
  * @param \alkr\CMSBundle\Entity\Page $pages
  */
 public function removePage(\alkr\CMSBundle\Entity\Page $pages)
 {
     $this->pages->removeElement($pages);
 }
Esempio n. 10
0
 /**
  * Remove edificio
  *
  * @param \AppBundle\Entity\Edificio $edificio
  */
 public function removeEdificio(\AppBundle\Entity\Edificio $edificio)
 {
     $this->edificios->removeElement($edificio);
 }
Esempio n. 11
0
 /**
  * Remove photos
  *
  * @param \alkr\CMSBundle\Entity\Photo $photos
  */
 public function removePhoto(\alkr\CMSBundle\Entity\Photo $photos)
 {
     $this->photos->removeElement($photos);
 }
Esempio n. 12
0
 /**
  * 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);
 }
Esempio n. 14
0
 /**
  * Remove variantChildren
  *
  * @param Page $variantChildren
  */
 public function removeVariantChild(Page $variantChildren)
 {
     $this->variantChildren->removeElement($variantChildren);
 }
Esempio n. 15
0
 /**
  * (non-PHPdoc)
  * @see \MB\DashboardBundle\Model\Project\SourceGroupInterface::removeProject()
  */
 public function removeProject(\MB\DashboardBundle\Entity\Project $project)
 {
     $this->projects->removeElement($project);
 }
Esempio n. 16
0
 /** {@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);
 }
Esempio n. 18
0
 /**
  * Remove refuel.
  *
  * @param Refuel $refuel
  */
 public function removeRefuel(Refuel $refuel)
 {
     $this->refuels->removeElement($refuel);
 }
Esempio n. 19
0
 /**
  * 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);
 }
Esempio n. 21
0
 /**
  * Remove role
  *
  * @param \Bigfish\Bundle\UserBundle\Entity\Role $role
  */
 public function removeRole(\Bigfish\Bundle\UserBundle\Entity\Role $role)
 {
     $this->role->removeElement($role);
 }
Esempio n. 22
0
 /**
  * Remove archive
  *
  * @param \DocBundle\Entity\ArchiveParam $archive
  */
 public function removeArchive(\DocBundle\Entity\ArchiveParam $archive)
 {
     $this->archives->removeElement($archive);
 }
Esempio n. 23
0
 /**
  * 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);
 }
Esempio n. 25
0
 /**
  * Remove failure
  *
  * @param Loginfailure $failure
  */
 public function removeFailure(Loginfailure $failure)
 {
     $this->failures->removeElement($failure);
 }
Esempio n. 26
0
 /**
  * Remove children
  *
  * @param \Flyers\PlanITBundle\Entity\Task $children
  */
 public function removeChildren(\Flyers\PlanITBundle\Entity\Task $children)
 {
     $this->children->removeElement($children);
 }
Esempio n. 27
0
 /**
  * Remove product
  *
  * @param \AppBundle\Entity\Product $product
  */
 public function removeProduct(\AppBundle\Entity\Product $product)
 {
     $this->products->removeElement($product);
 }
Esempio n. 28
0
 /**
  * Remove project
  *
  * @param \Backend\AdminBundle\Entity\Project $project
  */
 public function removeProject(\Backend\AdminBundle\Entity\Project $project)
 {
     $this->projects->removeElement($project);
 }
Esempio n. 29
0
 /**
  * Remove tweetPlace
  *
  * @param \Headoo\MediaSocialApiBundle\Entity\TweetPlace $tweetPlace
  */
 public function removeTweetPlace(\Headoo\MediaSocialApiBundle\Entity\TweetPlace $tweetPlace)
 {
     $this->tweetPlace->removeElement($tweetPlace);
 }
Esempio n. 30
0
 /**
  * Remove charges
  *
  * @param \Flyers\PlanITBundle\Entity\Charge $charges
  */
 public function removeCharge(\Flyers\PlanITBundle\Entity\Charge $charges)
 {
     $this->charges->removeElement($charges);
 }