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