Commit 3b77cb9
committed
Support immutable entities, readonly stubs, persist return type
- Change persist() return type from bool to object (matches Data)
- Add readonly entity test stubs (ReadOnlyAuthor, ReadOnlyPost, ReadOnlyComment)
- Add tests for immutable entity hydration, insert, update, delete
- Add tests for inline persist changes, relation graphs, mixed graphs
- Update FlatNum hydrator tests for lazy entity class resolution
- Remove duplicate testShouldNotExecuteEntityConstructorWhenDisabled
- Rename testMultipleFilteredCollectionsDontPersist to clarify intent
- Add actual refetch assertion to testReadOnlyDeleteAndRefetch1 parent 61bd2da commit 3b77cb9
6 files changed
Lines changed: 436 additions & 35 deletions
File tree
- src
- tests
- Hydrators
- Stubs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
79 | | - | |
| 80 | + | |
| 81 | + | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| |||
0 commit comments