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
..
2017-06-11 22:38:03 +10:00
2017-04-24 21:38:19 +10:00
2016-03-28 15:47:29 +02:00