public function updateCron(EdgarEzCron $cron): bool
    {
        try {
            $this->getEntityManager()->persist($cron);
            $this->getEntityManager()->flush();
        } catch (ORMException $e) {
            return false;
        }

        return true;
    }
public function updateCron(EdgarEzCron $cron): bool
    {
        try {
            $this->getEntityManager()->persist($cron);
            $this->getEntityManager()->flush();
        } catch (ORMException $e) {
            return false;
        }

        return true;
    }
public function updateCron ( EdgarEzCron $ cron ) : bool { try { $ this -> getEntityManager ( ) -> persist ( $ cron ) ; $ this -> getEntityManager ( ) -> flush ( ) ; } catch ( ORMException $ e ) { return false ; } return true ; }
Update cron object.

@param EdgarEzCron $cron

@return bool
Update cron object .