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

Update query is having issue when we pass criteria. #1974

Open
JinalParmar26 opened this issue Jul 24, 2023 · 1 comment
Open

Update query is having issue when we pass criteria. #1974

JinalParmar26 opened this issue Jul 24, 2023 · 1 comment

Comments

@JinalParmar26
Copy link

JinalParmar26 commented Jul 24, 2023

With propel beta version when I pass critetia in Update query it throws error : Propel\Runtime\ActiveQuery\ModelCriteria::basePreUpdate(): Argument 1 ($values) must be of type array, Propel\Runtime\ActiveQuery\Criteria given

@SpikedCola
Copy link

SpikedCola commented Aug 1, 2024

We have the same issue.

For now we modify the Propel classes directly to remove the "array" type, for preUpdate and basePreUpdate, so we can pass a Criteria.

This is absolutely the wrong way to go about fixing this. We will create a test case/PR at some point.

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

No branches or pull requests

2 participants