public function subQuery() {
        $query = new SubQuery(Query::SELECT, $this->getRepository());
        $query->fields(func_get_args());

        return $query;
    }
public function subQuery() {
        $query = new SubQuery(Query::SELECT, $this->getRepository());
        $query->fields(func_get_args());

        return $query;
    }
public function subQuery ( ) { $ query = new SubQuery ( Query :: SELECT , $ this -> getRepository ( ) ) ; $ query -> fields ( func_get_args ( ) ) ; return $ query ; }
Instantiate a new query object that will be used for sub-queries.

@return \Titon\Db\Query\SubQuery
Instantiate a new query object that will be used for sub - queries .