Пример #1
0
 /**
  * @param Category $category
  *
  * @return $this
  */
 public function removeChildCategory(Category $category)
 {
     if ($this->childCategories->contains($category)) {
         $this->childCategories->removeElement($category);
     }
     return $this;
 }
Пример #2
0
 /**
  * Remove a category in the product association.
  * (Owning side).
  *
  * @param Category $category The category to disassociate
  */
 public function removeCategory($category)
 {
     $category->removeProduct($this);
     $this->categories->removeElement($category);
 }
Пример #3
0
 /**
  * Removes child category.
  *
  * @param Category $category
  *
  * @return Category
  */
 public function removeChild(Category $category)
 {
     $this->children->removeElement($category);
     return $this;
 }
Пример #4
0
 /**
  * @param Category $category
  */
 public function removeCategory(Category $category)
 {
     $this->categories->removeElement($category);
 }
 /**
  * Remove category
  *
  * @param \AppBundle\Entity\Category $category
  */
 public function removeCategory(\AppBundle\Entity\Category $category)
 {
     $this->categories->removeElement($category);
 }
Пример #6
0
 /**
  * Remove child
  *
  * @param \ShopBundle\Entity\Category $child
  */
 public function removeChild(\ShopBundle\Entity\Category $child)
 {
     $this->children->removeElement($child);
 }