src/ORM/Queries/SQLConditionalExpression.php
public function filtersOnID()
    {
        $regexp = '/^(.*\.)?("|`)?ID("|`)?\s?(=|IN)/';

        foreach ($this->getWhereParameterised($parameters) as $predicate) {
            if (preg_match($regexp, $predicate)) {
                return true;
            }
        }

        return false;
    }
public function filtersOnID()
    {
        $regexp = '/^(.*\.)?("|`)?ID("|`)?\s?(=|IN)/';

        foreach ($this->getWhereParameterised($parameters) as $predicate) {
            if (preg_match($regexp, $predicate)) {
                return true;
            }
        }

        return false;
    }
public function filtersOnID ( ) { $ regexp = '/^(.*\.)?("|`)?ID("|`)?\s?(=|IN)/' ; foreach ( $ this -> getWhereParameterised ( $ parameters ) as $ predicate ) { if ( preg_match ( $ regexp , $ predicate ) ) { return true ; } } return false ; }
Checks whether this query is for a specific ID in a table

@todo Doesn't work with combined statements (e.g. "Foo='bar' AND ID=5")

@return boolean
Checks whether this query is for a specific ID in a table