@@ -68,4 +68,52 @@ Referenced associations (``has_one`` and ``has_many``):
68
68
| Parent :around_save_close | |
69
69
+---------------------------------------+---------------------------------------+
70
70
| Parent :after_save | |
71
- +---------------------------------------+---------------------------------------+
71
+ +---------------------------------------+---------------------------------------+
72
+
73
+ Embedded associations (``embeds_one`` and ``embeds_many``):
74
+
75
+ +---------------------------------------+---------------------------------------+
76
+ | Mongoid 7.5 | Mongoid 7.4 |
77
+ +=======================================+=======================================+
78
+ | Parent :before_save | Child :before_save |
79
+ +---------------------------------------+---------------------------------------+
80
+ | Parent :around_save_open | Child :around_save_open |
81
+ +---------------------------------------+---------------------------------------+
82
+ | Parent :before_create | Child :around_save_close |
83
+ +---------------------------------------+---------------------------------------+
84
+ | Parent :around_create_open | Child :after_save |
85
+ +---------------------------------------+---------------------------------------+
86
+ | Child :before_save | Parent :before_save |
87
+ +---------------------------------------+---------------------------------------+
88
+ | Child :around_save_open | Parent :around_save_open |
89
+ +---------------------------------------+---------------------------------------+
90
+ | Child :before_create | Child :before_create |
91
+ +---------------------------------------+---------------------------------------+
92
+ | Child :around_create_open | Child :around_create_open |
93
+ +---------------------------------------+---------------------------------------+
94
+ | | Child :around_create_close |
95
+ +---------------------------------------+---------------------------------------+
96
+ | | Child :after_create |
97
+ +---------------------------------------+---------------------------------------+
98
+ | | Parent :before_create |
99
+ +---------------------------------------+---------------------------------------+
100
+ | | Parent :around_create_open |
101
+ +---------------------------------------+---------------------------------------+
102
+ | **Document persisted in MongoDB** | **Document persisted in MongoDB** |
103
+ +---------------------------------------+---------------------------------------+
104
+ | Child :around_create_close | |
105
+ +---------------------------------------+---------------------------------------+
106
+ | Child :after_create | |
107
+ +---------------------------------------+---------------------------------------+
108
+ | Child :around_save_close | |
109
+ +---------------------------------------+---------------------------------------+
110
+ | Child :after_save | |
111
+ +---------------------------------------+---------------------------------------+
112
+ | Parent :around_create_close | Parent :around_create_close |
113
+ +---------------------------------------+---------------------------------------+
114
+ | Parent :after_create | Parent :after_create |
115
+ +---------------------------------------+---------------------------------------+
116
+ | Parent :around_save_close | Parent :around_save_close |
117
+ +---------------------------------------+---------------------------------------+
118
+ | Parent :after_save | Parent :after_save |
119
+ +---------------------------------------+---------------------------------------+
0 commit comments