ORIENT/modules/backend/traits
Samuel Georges b9581332aa Save relations first in model saver
This aligns better with the relation principal "parent saves child" / "child cannot save parent" and is more conducive to the natural workflow of a coder, ie

// Relation first
$gallery = new Gallery;
$gallery->save();

// Primary model last
$post = new Post;
$post->gallery = $gallery;
$post->save();

Refs https://github.com/octobercms/library/pull/277
2017-12-06 21:21:19 +11:00
..
CollapsableWidget.php Rename methods in CollapsableWidget 2017-06-10 15:42:24 +10:00
ErrorMaker.php Create an error making trait 2017-06-11 22:38:03 +10:00
FormModelSaver.php Save relations first in model saver 2017-12-06 21:21:19 +11:00
FormModelWidget.php Improves exception handling for invalid model resolver 2016-09-18 13:44:13 +10:00
InspectableContainer.php Code dusting (#2826) 2017-04-24 21:38:19 +10:00
SearchableWidget.php Clean up 2016-03-28 15:47:29 +02:00
SelectableWidget.php Maintain key integrity. Fixes #1969 2016-05-04 19:20:41 +10:00
SessionMaker.php Move session logic to SessionMaker 2017-06-10 04:58:29 +10:00
WidgetMaker.php Move session logic to SessionMaker 2017-06-10 04:58:29 +10:00