Skip to content
This repository was archived by the owner on Jul 20, 2020. It is now read-only.
This repository was archived by the owner on Jul 20, 2020. It is now read-only.

Allow saving of relationships independently of saving object properties #17

@froddd

Description

@froddd

In some cases it would be very handy to be able to save a relationship on its own, without saving the object itself as well.

Proposition: adding a separate method for saving relations on their own, eg:

$object->save_related($related_object, $related_key);

and/or, following the previous many different formats for saving objects with multiple relations:

$object->save_related(array('related_key' => $related_objects->all, 'key_2' => $rel_2->all, ...))

Note: this may already be superseded by the new approach to related object validation, feel free to close if so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions