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