public function __set($prop, $value) { if ($this->getAssociations()->exists($prop)) { $this->setAssociation($prop, $value); return; } return parent::__set(static::properAttributeName($prop), $value); }