src/Titon/Db/Repository.php
public function query($type) {
        $query = $this->getDriver()->newQuery($type);
        $query->setRepository($this);
        $query->from($this->getTable(), $this->getAlias());

        return $query;
    }
public function query($type) {
        $query = $this->getDriver()->newQuery($type);
        $query->setRepository($this);
        $query->from($this->getTable(), $this->getAlias());

        return $query;
    }
public function query ( $ type ) { $ query = $ this -> getDriver ( ) -> newQuery ( $ type ) ; $ query -> setRepository ( $ this ) ; $ query -> from ( $ this -> getTable ( ) , $ this -> getAlias ( ) ) ; return $ query ; }
Instantiate a new query builder.

@param string $type
@return \Titon\Db\Query
Instantiate a new query builder .