public function run(SmileCron $smileCron)
    {
        $now = new \DateTime('now');
        $smileCron->setStarted($now);
        $this->getEntityManager()->persist($smileCron);
        $this->getEntityManager()->flush();
    }
public function run(SmileCron $smileCron)
    {
        $now = new \DateTime('now');
        $smileCron->setStarted($now);
        $this->getEntityManager()->persist($smileCron);
        $this->getEntityManager()->flush();
    }
public function run ( SmileCron $ smileCron ) { $ now = new \ DateTime ( 'now' ) ; $ smileCron -> setStarted ( $ now ) ; $ this -> getEntityManager ( ) -> persist ( $ smileCron ) ; $ this -> getEntityManager ( ) -> flush ( ) ; }
Run cron command

@param SmileCron $smileCron cron command
Run cron command