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