src/Towel/Model/BaseModel.php
public function createQuery() {
    $query = $this->db()->createQueryBuilder();
    $query->select('t.*')
      ->from($this->table, 't');

    return $query;
  }
public function createQuery() {
    $query = $this->db()->createQueryBuilder();
    $query->select('t.*')
      ->from($this->table, 't');

    return $query;
  }
public function createQuery ( ) { $ query = $ this -> db ( ) -> createQueryBuilder ( ) ; $ query -> select ( 't.*' ) -> from ( $ this -> table , 't' ) ; return $ query ; }
Creates a QueryBuilder with the table selected.

@return \Doctrine\DBAL\Query\QueryBuilder
Creates a QueryBuilder with the table selected .