protected function sqlDelete(string $extraWhereClause): string
    {
        // get the conditions to alter the current record
        $conditions = $this->sqlWhereConditions($extraWhereClause);
        // if no conditions then log error and return false
        if (! count($conditions)) {
            throw new \LogicException('Recordset: The current record does not have any conditions to delete');
        }
        return 'DELETE'
            . ' FROM ' . $this->dbal->sqlTableEscape($this->entity)
            . ' WHERE ' . implode(' AND ', $conditions)
            . ';';
    }
protected function sqlDelete(string $extraWhereClause): string
    {
        // get the conditions to alter the current record
        $conditions = $this->sqlWhereConditions($extraWhereClause);
        // if no conditions then log error and return false
        if (! count($conditions)) {
            throw new \LogicException('Recordset: The current record does not have any conditions to delete');
        }
        return 'DELETE'
            . ' FROM ' . $this->dbal->sqlTableEscape($this->entity)
            . ' WHERE ' . implode(' AND ', $conditions)
            . ';';
    }
protected function sqlDelete ( string $ extraWhereClause ) : string { // get the conditions to alter the current record $ conditions = $ this -> sqlWhereConditions ( $ extraWhereClause ) ; // if no conditions then log error and return false if ( ! count ( $ conditions ) ) { throw new \ LogicException ( 'Recordset: The current record does not have any conditions to delete' ) ; } return 'DELETE' . ' FROM ' . $ this -> dbal -> sqlTableEscape ( $ this -> entity ) . ' WHERE ' . implode ( ' AND ' , $ conditions ) . ';' ; }
Create the sql statement for DELETE
@param string $extraWhereClause
@return string
Create the sql statement for DELETE