public function getProperty($name) { if ($this->getAssociations()->exists($name)) { return $this->getAssociations()->load($this, $name); } return parent::getProperty($name); }