This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

octubreprofavor
octubreprofavor

I have extended the User plugin similarly to the first half of this tutorial video.

If I update a value on the relation object and then call save() or update() on the User object the update does not apply to the relationships.

$user->relation['some_value'] = true;
$user->update();
// `some_value` is not saved.

In order to save the relationship I have to to update on every relation:

$user->relation->update();

Is there a way to quickly update/save the model including all of it's relationships?

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.