/** * * @param mixed $pk * @param string $condition * @param array $params * @return array */ public function findAllByPk($pk, $condition = '', $params = array()) { if (CStubActiveRecord::isUnittests()) { return CallFactory::call($this, 'findAllByPk'); } return parent::findAllByPk($pk, $condition, $params); }
public function findAllByPk($pk, $condition = '', $params = array()) { return $this->prepareRecords(parent::findAllByPk($pk, $this->prepareCondition($condition), $params)); }