/** * Creates an UPDATE command that increments/decrements certain columns. * Override parent implementation to check if an orderby clause if specified when querying with an offset * * @param TableSchema $table the table metadata * @param array $counters counters to be updated (counter increments/decrements indexed by column names.) * @param Criteria $criteria the query criteria * * @return Command the created command * @throws \Exception if no counter is specified */ public function createUpdateCounterCommand($table, $counters, $criteria) { $criteria = $this->checkCriteria($table, $criteria); return parent::createUpdateCounterCommand($table, $counters, $criteria); }