public function intersect(Query $query, $flag = null) {
        if ($flag === Dialect::ALL) {
            $query->attribute('flag', $flag);
        }

        return $this->_addCompound(Dialect::INTERSECT, $query);
    }
public function intersect(Query $query, $flag = null) {
        if ($flag === Dialect::ALL) {
            $query->attribute('flag', $flag);
        }

        return $this->_addCompound(Dialect::INTERSECT, $query);
    }
public function intersect ( Query $ query , $ flag = null ) { if ( $ flag === Dialect :: ALL ) { $ query -> attribute ( 'flag' , $ flag ) ; } return $ this -> _addCompound ( Dialect :: INTERSECT , $ query ) ; }
Add a select query as an intersect.

@param \Titon\Db\Query $query
@param string $flag
@return $this
Add a select query as an intersect .