public function delete(array $where, $tableName = null)
    {
        $tableName = $tableName ?: $this->getTableName();
        $sql = $this->getSql();
        $delete = $sql->delete($tableName);

        $delete->where($where);

        $statement = $sql->prepareStatementForSqlObject($delete);

        return $statement->execute();
    }
public function delete(array $where, $tableName = null)
    {
        $tableName = $tableName ?: $this->getTableName();
        $sql = $this->getSql();
        $delete = $sql->delete($tableName);

        $delete->where($where);

        $statement = $sql->prepareStatementForSqlObject($delete);

        return $statement->execute();
    }
public function delete ( array $ where , $ tableName = null ) { $ tableName = $ tableName ? : $ this -> getTableName ( ) ; $ sql = $ this -> getSql ( ) ; $ delete = $ sql -> delete ( $ tableName ) ; $ delete -> where ( $ where ) ; $ statement = $ sql -> prepareStatementForSqlObject ( $ delete ) ; return $ statement -> execute ( ) ; }
return deleted nuber of rows
return deleted nuber of rows