Commit Graph

4 Commits

Author SHA1 Message Date
Luke Towers 60afd41cc2 Revert "Rebase October CMS on Laravel 6 (#4893)"
This reverts commit ee0065d353.
2020-08-09 03:48:03 -06:00
Ben Thomson ee0065d353
Rebase October CMS on Laravel 6 (#4893)
Rebase October CMS on Laravel 6
2020-08-09 03:44:16 -06:00
Samuel Georges 7b0531e0a0 Tests to prove double save issue fixed
Has one and morph one relations would null on a second save. This is because the relation would use an UPDATE sql query to null the value, then leverage eloquent's save() method to apply it again. Eloquent's save() method does not apply attributes that are unchanged (not dirty), resulting in the value being left as null.

Refs #1986
2016-11-22 08:07:10 +11:00
Samuel Georges 518dee7730 Write MorphOne model test
Refs #1868
2016-04-05 00:03:09 +10:00