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