Commit Graph

2 Commits

Author SHA1 Message Date
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