mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Discriminator not working #6996
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Ciloe on GitHub (Jun 27, 2022).
Bug Report
Summary
I have a problem with discriminator when using KnpLabs repository for translation. I created this issue https://github.com/KnpLabs/DoctrineBehaviors/issues/704. When I insert translation on discriminator entity, the
discrfield is not set. The column not appear in the insertColumns arrayCurrent behavior
The column
discrisnullExpected behavior
When entity translation with discriminator is set, this will insert the
discrcolumn with correct value@Ciloe commented on GitHub (Jul 20, 2022):
Any updates ?
@greg0ire commented on GitHub (Jul 21, 2022):
I have no idea about your issue, but
abstract class AbstractBookableActivityTranslation extends AbstractEntity implements TranslationInterfaceappears twice in your issue, I don't think that's normal, and I think it doesn't help understanding your issue.@Ciloe commented on GitHub (Jul 21, 2022):
Thanks, that's a mistake. I updated my issue.
@mpdude commented on GitHub (Jan 16, 2023):
Please provide a reproducible example here. Also your code over at the other repo does not show all the classes being used.
@Ciloe commented on GitHub (Jan 17, 2023):
It will be difficult. I will check that