src/NAD/ProductBundle/Entity/Product.php
/**
     * Add categories
     *
     * @param  Category $categories
     * @return Product
     */
Add categories
@param  Category $categories
@return Product
Add categories @param Category $categories @return Product
public function addCategory(Category $categories)
    {
        $this->categories[] = $categories;
        return $this;
    }
public function addCategory ( Category $ categories ) { $ this -> categories [ ] = $ categories ; return $ this ; }
Add categories
 @param  Category $categories
 @return Product
Add categories @param Category $categories @return Product