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
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,6 +162,14 @@ foreach ($groups as $group)
162
162
}
163
163
```
164
164
165
+
### Soft Deletes
166
+
167
+
If your target relations correspond to a CodeIgniter Model that uses [soft deletion](https://codeigniter.com/user_guide/models/model.html#usesoftdeletes)
168
+
then you may include the table name in the `array $withDeletedRelations` property to include
169
+
soft deleted items. This is particularly helpful for tight relationships, like when an item
170
+
`belongsTo` another item that has been soft deleted. `$withDeletedRelations` works on both
171
+
Entities and Models.
172
+
165
173
## Performance
166
174
167
175
*WARNING*: Be aware that **Relations** relies on a schema generated from the **Schemas**
0 commit comments