mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
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