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