/**
  * {@inheritDoc}
  */
 public function addCategory(\Catalog\Entity\CategoryEntity $category)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'addCategory', array($category));
     return parent::addCategory($category);
 }
Exemplo n.º 2
0
 /**
  * @param \Catalog\Entity\ProductEntity $product
  * @return object
  */
 public function addProduct(ProductEntity $product)
 {
     $product->addCategory($this);
     $this->products[] = $product;
     return $this;
 }