Ejemplo n.º 1
0
 /**
  * Find updates in database
  * @return UpdateContainer
  */
 public function findUpdatesFromDb()
 {
     if (\Yadup\UpdatorService::isUpdateTableCreated($this->db, $this->dbUpdateTable)) {
         foreach ($this->db->table($this->dbUpdateTable)->fetchAll() as $upd) {
             $update = $this->getOrCreateUpdate($upd["created_at"]);
             $update->inDb = true;
         }
     }
     return $this;
 }