LMongo\Eloquent\Relations\MorphOneOrMany::save PHP Method

save() public method

Attach a model instance to the parent model.
public save ( Model $model ) : Model
$model LMongo\Eloquent\Model
return LMongo\Eloquent\Model
    public function save(Model $model)
    {
        $model->setAttribute($this->morphType, $this->morphClass);
        return parent::save($model);
    }