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; }
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; } }