public deleteFrom ( string $table, string $primaryKey = null ) : DeleteQuery | ||
$table | string | |
$primaryKey | string | |
Результат | DeleteQuery |
public function deleteFrom($table, $primaryKey = null)
{
$args = func_get_args();
return call_user_func_array(array($this, 'delete'), $args);
}
/** * Performs a delete query using FluentPDO */ public function delete($table, $key, $keyValue = null) { if (!$this->isConnected()) { static::connect(); } $this->num_queries++; return $this->fpdo->deleteFrom($table)->where($key, $keyValue)->execute(); }