protected function wantsTemporary($query)
    {
        foreach ($query->getWhere() as $whereClause) {
            $from = array_values($query->getFrom());
            // SQLQuery will automatically add double quotes and single quotes to values, so check against that.
            $key = key($whereClause);
            if ($key == "{$from[0]}.\"MultiFormIsTemporary\" = ?" && current($whereClause[$key]) == 1) {
                return true;
            }
        }

        return false;
    }
protected function wantsTemporary($query)
    {
        foreach ($query->getWhere() as $whereClause) {
            $from = array_values($query->getFrom());
            // SQLQuery will automatically add double quotes and single quotes to values, so check against that.
            $key = key($whereClause);
            if ($key == "{$from[0]}.\"MultiFormIsTemporary\" = ?" && current($whereClause[$key]) == 1) {
                return true;
            }
        }

        return false;
    }
protected function wantsTemporary ( $ query ) { foreach ( $ query -> getWhere ( ) as $ whereClause ) { $ from = array_values ( $ query -> getFrom ( ) ) ; // SQLQuery will automatically add double quotes and single quotes to values, so check against that. $ key = key ( $ whereClause ) ; if ( $ key == "{$from[0]}.\"MultiFormIsTemporary\" = ?" && current ( $ whereClause [ $ key ] ) == 1 ) { return true ; } } return false ; }
Determines if the current query is supposed
to be exempt from the automatic filtering out
of temporary records.

@param SQLSelect $query
@return boolean
Determines if the current query is supposed to be exempt from the automatic filtering out of temporary records .