mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #11406] Psalmify QueryBuilder, Query and EntityRepository. #13003
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/11406
State: closed
Merged: No
Added templates for QueryBuilder, Query and EntityRepository.
With repository defined like:
Using it:
If at any point user makes a call to
QueryBuilder::select, it will be converted tomixedvia@psalm-this-out self<mixed>. For example:The reasoning is that almost all queries are done with object hydration and this would help in later processing. Custom
selectwill break out of static analysis and it is up to user to assert returned results.