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

QueryBuilderSetParameter error when using an entity with no specified type #219

Open
pkly opened this issue Sep 16, 2021 · 0 comments
Open

Comments

@pkly
Copy link

pkly commented Sep 16, 2021

Doctrine has some special handling where it looks up the primary key of the object if said object is an entity that's known to it, and to keep this behavior you cannot specify a type.
It looks much neater in terms of usage than ->setParameter('something', $entity->getId(), Types::INTEGER);, and isn't really an error, and as such I'd like to ask for an opt-in feature that will silently ignore this scenario.

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

1 participant