Esempio n. 1
0
 /**
  * @param Trader $trader
  * @throws \Exception
  */
 public function disableTrader(Trader $trader)
 {
     try {
         if ($trader->getEnabled()) {
             $trader->setEnabled(false);
             $this->persistAndFlush($trader);
         }
     } catch (\Exception $e) {
         throw $e;
     }
 }