psalm-plugin-symfony
psalm-plugin-symfony copied to clipboard
QueryBuilderSetParameter error when using an entity with no specified type
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.