/** * PHP magic method. * This method is overridden so that named fixture ActiveRecord instances can be accessed in terms of a method call. * @param string $name method name * @param string $params method parameters * @return mixed the property value */ public function __call($name, $params) { if (is_array($this->fixtures) && isset($params[0]) && ($record = $this->getFixtureManager()->getRecord($name, $params[0])) !== false) { return $record; } else { return parent::__call($name, $params); } }