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
{{ message }}
Repository navigation
Commit b79bf18
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/models/entities.md
+37-25Lines changed: 37 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -785,57 +785,69 @@ For objects and arrays, the Entity JSON-encodes and normalizes the values for co
785
785
786
786
!!! success "Available from version 4.8.0"
787
787
788
-
By default, your entity can contain the initial state of the attributes. When working with objects, you can rely on the fact that all the necessary properties are available. However, after receiving the object from the database, you may find that the entity is not complete and some properties are missing.
788
+
Your entity can have the initial state and contains all the necessary keys in the `$attributes`. When working with objects, you can rely on the fact that all properties are available. However, attributes missing from the query result are dropped, so reading them later fails or returns `null`.
789
789
790
-
Suppose there is no `isBanned` field in the table, and the `profile` property is virtual and filled in another way.
790
+
Suppose there is no `isBanned` field in the table and the `profile` property is virtual and filled in another way.
791
791
792
-
With the `$mergeAttributesOnInject = false` you will get errors because by default properties are overwritten in `injectRawData()`.
792
+
By default, with the `$mergeAttributesOnInject = false` you will get errors because by initialized properties are overwritten in `injectRawData()`.
0 commit comments