src/Flowcode/ShopBundle/Service/ProductOrderItemService.php
public function create(ProductOrderItem $productOrderItem)
    {
        $this->getEm()->persist($productOrderItem);
        $this->getEm()->flush();

        return $productOrderItem;
    }
public function create(ProductOrderItem $productOrderItem)
    {
        $this->getEm()->persist($productOrderItem);
        $this->getEm()->flush();

        return $productOrderItem;
    }
public function create ( ProductOrderItem $ productOrderItem ) { $ this -> getEm ( ) -> persist ( $ productOrderItem ) ; $ this -> getEm ( ) -> flush ( ) ; return $ productOrderItem ; }
Create a new ProductOrderItem.
@param  ProductOrderItem $productOrderItem the productOrderItem instance.
@return ProductOrderItem       the productOrderItem instance.
Create a new ProductOrderItem .