public function deleteRecordsByCriteria(TActiveRecord $record, $criteria) { return $this->getCommand($record)->delete($criteria); }