public function delete($criteria=NULL)
    {
        $where = !is_null($criteria)
            ? 'WHERE '.$criteria->toSql()
            : NULL
            ;

        return $this->_connection->execute(sprintf(
            'DELETE FROM %s %s',
            $this->_name->quoted(),
            $where
            ));
    }
public function delete($criteria=NULL)
    {
        $where = !is_null($criteria)
            ? 'WHERE '.$criteria->toSql()
            : NULL
            ;

        return $this->_connection->execute(sprintf(
            'DELETE FROM %s %s',
            $this->_name->quoted(),
            $where
            ));
    }
public function delete ( $ criteria = NULL ) { $ where = ! is_null ( $ criteria ) ? 'WHERE ' . $ criteria -> toSql ( ) : NULL ; return $ this -> _connection -> execute ( sprintf ( 'DELETE FROM %s %s' , $ this -> _name -> quoted ( ) , $ where ) ) ; }
Deletes rows in the table
Deletes rows in the table