[PR #293] [DDC-1663]Native SQL Query Result Set Mappings #7988

Closed
opened 2026-01-22 15:57:50 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/293

State: closed
Merged: Yes


Hello

http://www.doctrine-project.org/jira/browse/DDC-1663

This patch adds support for native query mapping
This is not complete yet but a would like to get your sugestions about this.

The following annotations have been added :

@NamedNativeQuery : Is used to specify a native SQL named query.

@SqlResultSetMapping: Is used to specify the mapping of the result of a native SQL query.

@EntityResult: References an entity in the SELECT clause of a SQL query.

@FieldResult: Is used to map the columns specified in the SELECT list of the query to the properties or fields of the entity class.

@ColumnResult : References name of a column in the SELECT clause of a SQL query. (scalar values)

It is a very big feature so any suggestion are welcome. :)

Thanks

**Original Pull Request:** https://github.com/doctrine/orm/pull/293 **State:** closed **Merged:** Yes --- Hello http://www.doctrine-project.org/jira/browse/DDC-1663 This patch adds support for native query mapping This is not complete yet but a would like to get your sugestions about this. The following annotations have been added : `@NamedNativeQuery` : Is used to specify a native SQL named query. `@SqlResultSetMapping`: Is used to specify the mapping of the result of a native SQL query. `@EntityResult`: References an entity in the SELECT clause of a SQL query. `@FieldResult`: Is used to map the columns specified in the SELECT list of the query to the properties or fields of the entity class. `@ColumnResult` : References name of a column in the SELECT clause of a SQL query. (scalar values) It is a very big feature so any suggestion are welcome. :) Thanks
admin added the pull-request label 2026-01-22 15:57:50 +01:00
admin closed this issue 2026-01-22 15:57:51 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#7988