FluentPDO::deleteFrom PHP Method

deleteFrom() public method

Create DELETE FROM query
public deleteFrom ( string $table, string $primaryKey = null ) : DeleteQuery
$table string
$primaryKey string
return DeleteQuery
    public function deleteFrom($table, $primaryKey = null)
    {
        $args = func_get_args();
        return call_user_func_array(array($this, 'delete'), $args);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * 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();
 }
All Usage Examples Of FluentPDO::deleteFrom