mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
dot prefixed TableName on AssociationOverrides via XmlDriver when not defining a schema #6986
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 @develth on GitHub (Jun 7, 2022).
Bug Report
When defining a AssociationOverride via XmlDriver, it tries to set an empty Schema that results in a table named with a dot prefix only.
Summary
Tries to set empty string as schema on AssociationOverride on a join table .
Current behavior
Tries to set empty string as schema resulting in a Statement like that:
How to reproduce
Define a JoinTable association override without defining a schema, e.g.:
Expected behavior
Should not prefix when string is empty.
Issue seems to be the
(string)here:67d82cdf72/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php (L668)