DDC-1182: Add hydratorType to find(),find*(),findBy*() Entity Manager Method #1482

Closed
opened 2026-01-22 13:15:49 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (May 30, 2011).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user benoit:

It is possible in future to precise the hydrator wanted when find() method is called ?
Something like: $em->find('My\Entity', $idEntity, \Doctrine\ORM\AbstractQuery::HYDRATE_SCALAR) ?

Originally created by @doctrinebot on GitHub (May 30, 2011). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user benoit: It is possible in future to precise the hydrator wanted when find() method is called ? Something like: $em->find('My\Entity', $idEntity, \Doctrine\ORM\AbstractQuery::HYDRATE_SCALAR) ?
admin added the Improvement label 2026-01-22 13:15:49 +01:00
admin closed this issue 2026-01-22 13:15:50 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jan 16, 2012):

Comment created by @guilhermeblanco:

All those methods already receive other parameters like locking, order by, limit and offset.
The prototype of these method would become horrible with this change and a huge no-go in my personal opinion.

@doctrinebot commented on GitHub (Jan 16, 2012): Comment created by @guilhermeblanco: All those methods already receive other parameters like locking, order by, limit and offset. The prototype of these method would become horrible with this change and a huge no-go in my personal opinion.
Author
Owner

@doctrinebot commented on GitHub (Jan 16, 2012):

Issue was closed with resolution "Won't Fix"

@doctrinebot commented on GitHub (Jan 16, 2012): Issue was closed with resolution "Won't Fix"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1482