public function __call($method, $params) { if ($this->getAssociation($method) !== null) { return $this->loadedAssociations[$method]; } return parent::__call($method, $params); }