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

bug: ModelCriteria::update support for accepting Criteria object is broken #2005

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kasparsj
Copy link
Contributor

@kasparsj kasparsj commented Apr 26, 2024

Even though ModelCriteria::update does accept a Criteria object for $values argument, further down the line basePreUpdate and preUpdate method require explicitly an array.

So this PR fixes the bug by using an array in onDeleteSetNull instead.

If this is going to be merged as it is, then probably we should also make ModelCriteria::update accept explicitly array for $values, which I haven't included, since my main goal was to fix doOnDeleteSetNull

@kasparsj kasparsj changed the title ModelCriteria::update support for accepting Criteria object is broken bug: ModelCriteria::update support for accepting Criteria object is broken Apr 26, 2024
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.

1 participant