[PR #1130] [DDC-3300] Added resolve entities support in discrim. map #9188

Open
opened 2026-01-22 16:03:31 +01:00 by admin · 0 comments
Owner

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

State: closed
Merged: No


This PR is WIP. I just wanted to know if what I am doing is wrong or I can go on with tests and documentation.

This is what happens.

I have nicely the ability to define a relation using just the interfaces, and then, resolve these relations overriding the interfaces with the implementations. This resolves a big problem: Multiple implementations of one interface.

But, when you define a discriminatorMap, you Must define it using specific implementations, so all this flexibility gained in the relations is lost at this point.

Using a new listener, its easy to override this interfaces.

What do you think?

**Original Pull Request:** https://github.com/doctrine/orm/pull/1130 **State:** closed **Merged:** No --- This PR is WIP. I just wanted to know if what I am doing is wrong or I can go on with tests and documentation. This is what happens. I have nicely the ability to define a relation using just the interfaces, and then, resolve these relations overriding the interfaces with the implementations. This resolves a big problem: Multiple implementations of one interface. But, when you define a discriminatorMap, you **Must** define it using specific implementations, so all this flexibility gained in the relations is lost at this point. Using a new listener, its easy to override this interfaces. What do you think?
admin added the pull-request label 2026-01-22 16:03:31 +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#9188