Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forbid ContainsXxx unmanaged data modification #1004

Merged
merged 4 commits into from
Jun 7, 2022
Merged

Conversation

mvorisek
Copy link
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 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
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