Skip to content

Forbid ContainsXxx unmanaged data modification#1004

Merged
mvorisek merged 4 commits intodevelopfrom
fix_contains_hooks
Jun 7, 2022
Merged

Forbid ContainsXxx unmanaged data modification#1004
mvorisek merged 4 commits intodevelopfrom
fix_contains_hooks

Conversation

@mvorisek
Copy link
Copy Markdown
Member

@mvorisek mvorisek commented May 31, 2022

closes #881

we forbid the hidden feature to prevent unwanted behaviour (no hooks, normalization, ...)

when the direct unmanaged data modification is really wanted, simply add a field using $m->addField() instead of $m->containsOne() (or $m->containsMany())

@mvorisek mvorisek force-pushed the fix_contains_hooks branch from abd00b3 to 4d88cef Compare June 7, 2022 13:08
@mvorisek mvorisek changed the title Fix delete hooks for ContainsOne/Many when the owner model is deleted Forbid ContainsXxx data direct manipulation Jun 7, 2022
@mvorisek mvorisek changed the title Forbid ContainsXxx data direct manipulation Forbid ContainsXxx unmanaged data modification Jun 7, 2022
@mvorisek mvorisek marked this pull request as ready for review June 7, 2022 13:14
@mvorisek mvorisek requested a review from ibelar June 7, 2022 13:15
@mvorisek mvorisek removed the BC-break label Jun 7, 2022
@mvorisek mvorisek merged commit 3cc3a52 into develop Jun 7, 2022
@mvorisek mvorisek deleted the fix_contains_hooks branch June 7, 2022 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

ContainsMany does not fire ref model hook when set or save

1 participant