Ejemplo n.º 1
0
 public function delete($json)
 {
     $req = new StorageRequest($json, $this->connectionManager);
     $this->coreManager->init($req->getModel());
     $query = MySqlQuery::getDeleteQuery($this->configManager, $req);
     $this->connectionManager->query($query);
     return true;
 }
Ejemplo n.º 2
0
 public function modelTableExists($model)
 {
     $dbName = $this->configManager->getDbName();
     $q = MySqlQuery::getTableExistsQuery($this->configManager, $model);
     $exists = $this->connectionManager->getConnection()->query($q);
     if ($exists instanceof PDOStatement) {
         $exists->fetchAll();
         return true;
     } else {
         return false;
     }
 }