doctrine / orm

Doctrine Object Relational Mapper (ORM)
https://www.doctrine-project.org/projects/orm.html
MIT License
9.86k stars 2.5k forks source link

Allow classname in 'value' attribute of xml discriminator-mapping field #11453

Open MatteoFeltrin opened 1 month ago

MatteoFeltrin commented 1 month ago

fixes https://github.com/doctrine/orm/issues/11449

In relation to https://github.com/doctrine/orm/pull/10630 This PR allows a more loosen validation of the value attribute of discriminator-mapping field, using orm:type in the XSD schema as it was done in the linked pull request. The test I wrote loads the entity enabling the validation against XSD schema, thus expects no exception to be thrown.