public function end(SmileCron $smileCron, $status = 0)
    {
        $now = new \DateTime('now');
        $smileCron->setEnded($now);
        $smileCron->setStatus($status);
        $this->getEntityManager()->persist($smileCron);
        $this->getEntityManager()->flush();
    }
public function end(SmileCron $smileCron, $status = 0)
    {
        $now = new \DateTime('now');
        $smileCron->setEnded($now);
        $smileCron->setStatus($status);
        $this->getEntityManager()->persist($smileCron);
        $this->getEntityManager()->flush();
    }
public function end ( SmileCron $ smileCron , $ status = 0 ) { $ now = new \ DateTime ( 'now' ) ; $ smileCron -> setEnded ( $ now ) ; $ smileCron -> setStatus ( $ status ) ; $ this -> getEntityManager ( ) -> persist ( $ smileCron ) ; $ this -> getEntityManager ( ) -> flush ( ) ; }
End cron command

@param SmileCron $smileCron cron command
@param int $status cron command status
End cron command