You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see in this example, relations can be hydrated by id, or by an associative array with an id and more attributes.
428
436
If the item is hydrated using an associative array, it will be included in the resulting json unless `setOmitIncluded(true)` is called on the relation.
437
+
You can unset a relation by passing `null` for singular relations or an empty array for plural relations.
429
438
430
439
N.B. Morph relations require a 'type' attribute to be present in the data in order to know which type of item should be created.
0 commit comments