public function __get($name) { if ($this->hasRecordRelation($name) && !$this->canGetProperty($name)) { $this->fetchResultsFor($name); return $this->{$name}; } return parent::__get($name); }