Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.3
-
Fix Version/s: None
-
Component/s: ORM
-
Labels:None
Description
Currently Doctrine\ORM\Query\ResultSetMapping can only be used to query the database for entities using the EntityManager::createNativeQuery method. It would be great if we could use this as well for objects that are not entities. That way we can create simple DTO's and map them to a query using the ResultSetMapping.
I'll open a PR If there are no objections.
Activity
Marijn Huizendveld
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
Currently `Doctrine\ORM\Query\ResultSetMapping` can only be used to query the database for entities using the `EntityManager::createNativeQuery` method. It would be great if we could use this as well for objects that are not entities. That way we can create simple DTO's and map them to a query using the `ResultSetMapping`. I'll open a PR If there are no objections. |
Currently {{Doctrine\ORM\Query\ResultSetMapping}} can only be used to query the database for entities using the {{EntityManager::createNativeQuery}} method. It would be great if we could use this as well for objects that are not entities. That way we can create simple DTO's and map them to a query using the {{ResultSetMapping{{. I'll open a PR If there are no objections. |
Marijn Huizendveld
made changes -
| Description |
Currently {{Doctrine\ORM\Query\ResultSetMapping}} can only be used to query the database for entities using the {{EntityManager::createNativeQuery}} method. It would be great if we could use this as well for objects that are not entities. That way we can create simple DTO's and map them to a query using the {{ResultSetMapping{{. I'll open a PR If there are no objections. |
Currently {{Doctrine\ORM\Query\ResultSetMapping}} can only be used to query the database for entities using the {{EntityManager::createNativeQuery}} method. It would be great if we could use this as well for objects that are not entities. That way we can create simple DTO's and map them to a query using the {{ResultSetMapping}}. I'll open a PR If there are no objections. |
Benjamin Eberlei
made changes -
| Workflow | jira [ 13694 ] | jira-feedback [ 14065 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback [ 14065 ] | jira-feedback2 [ 15929 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback2 [ 15929 ] | jira-feedback3 [ 18180 ] |