public function augmentSQL(SQLSelect $query, DataQuery $dataQuery = null)
    {
        $where = $query->getWhere();
        if (!$where && !$this->wantsTemporary($query)) {
            $from = array_values($query->getFrom());
            $query->addWhere("{$from[0]}.\"MultiFormIsTemporary\" = '0'");
            return;
        }
        $filterKey = key($where[0]);
        if (strpos($filterKey, ".`ID` = ") === false
            && strpos($filterKey, ".ID = ") === false
            && strpos($filterKey, "ID = ") !== 0
            && !$this->wantsTemporary($query)
        ) {
            $from = array_values($query->getFrom());
            $query->addWhere("{$from[0]}.\"MultiFormIsTemporary\" = '0'");
        }
    }
public function augmentSQL(SQLSelect $query, DataQuery $dataQuery = null)
    {
        $where = $query->getWhere();
        if (!$where && !$this->wantsTemporary($query)) {
            $from = array_values($query->getFrom());
            $query->addWhere("{$from[0]}.\"MultiFormIsTemporary\" = '0'");
            return;
        }
        $filterKey = key($where[0]);
        if (strpos($filterKey, ".`ID` = ") === false
            && strpos($filterKey, ".ID = ") === false
            && strpos($filterKey, "ID = ") !== 0
            && !$this->wantsTemporary($query)
        ) {
            $from = array_values($query->getFrom());
            $query->addWhere("{$from[0]}.\"MultiFormIsTemporary\" = '0'");
        }
    }
public function augmentSQL ( SQLSelect $ query , DataQuery $ dataQuery = null ) { $ where = $ query -> getWhere ( ) ; if ( ! $ where && ! $ this -> wantsTemporary ( $ query ) ) { $ from = array_values ( $ query -> getFrom ( ) ) ; $ query -> addWhere ( "{$from[0]}.\"MultiFormIsTemporary\" = '0'" ) ; return ; } $ filterKey = key ( $ where [ 0 ] ) ; if ( strpos ( $ filterKey , ".`ID` = " ) === false && strpos ( $ filterKey , ".ID = " ) === false && strpos ( $ filterKey , "ID = " ) !== 0 && ! $ this -> wantsTemporary ( $ query ) ) { $ from = array_values ( $ query -> getFrom ( ) ) ; $ query -> addWhere ( "{$from[0]}.\"MultiFormIsTemporary\" = '0'" ) ; } }
Augment any queries to MultiFormObjectDecorator and only
return anything that isn't considered temporary.
@param SQLSelect $query
@param DataQuery|null $dataQuery
Augment any queries to MultiFormObjectDecorator and only return anything that isn t considered temporary .