Example #1
0
 /**
  * Creates a SELECT command for a single table.
  * Override parent implementation to check if an orderby clause if specified when querying with an offset
  *
  * @param TableSchema $table    the table metadata
  * @param Criteria    $criteria the query criteria
  * @param string      $alias    the alias name of the primary table. Defaults to 't'.
  *
  * @return Command query command.
  */
 public function createFindCommand($table, $criteria, $alias = 't')
 {
     $criteria = $this->checkCriteria($table, $criteria);
     return parent::createFindCommand($table, $criteria, $alias);
 }