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

Allow saving of relationships independently of saving object properties #17

Open
froddd opened this issue Sep 6, 2012 · 0 comments
Open

Comments

@froddd
Copy link

froddd commented Sep 6, 2012

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant