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