src/Flowcode/ShopBundle/Service/ProductService.php
/**
     * Create a new Product.
     * @param  Product $product the product instance.
     * @return Product       the product instance.
     */
Create a new Product.
@param  Product $product the product instance.
@return Product       the product instance.
Create a new Product . @param Product $product the product instance . @return Product the product instance .
public function create(Product $product)
    {
        $this->getEm()->persist($product);
        $this->getEm()->flush();
        return $product;
    }
public function create ( Product $ product ) { $ this -> getEm ( ) -> persist ( $ product ) ; $ this -> getEm ( ) -> flush ( ) ; return $ product ; }
Create a new Product.
Create a new Product .