/** * {@inheritdoc} * * Overloaded to support relationships. * Sets a model property: an attribute value, a has-one model, or an entire has-many model collection. * Note: To push/remove a single Model into a has-many collection, or clear a collection, use @see push(), remove() and clear(). * */ public function set($key, $value) { if (true === $this->isRelationship($key)) { return $this->setRelationship($key, $value); } return parent::set($key, $value); }