mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
count on Extra Lazy many-to-many requiring ID where LAZY does not #6197
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 @parljohn on GitHub (Mar 7, 2019).
Bug Report
Id of joined column doesn't work without the join column of the owner being an ID field.
Line 119 of ManytoManyPersister.
which only runs when EXTRA LAZY. Otherwise, count and LAZY functions work fine.
Expected behavior
Allow for non ID fields to be used in many-to-many relationships and allow for EXTRA_LAZY functionality.
@Ocramius commented on GitHub (Mar 8, 2019):
All
joinColumns MUST be identifiers, since the ORM builds associations internally (in memory) only with identifiers.Please validate your mappings (
orm:validate-schema) and if it doesn't fail, then we should probably add further assertions to the metadata drivers.