mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #6548] ManyToManyPersister should detect columnName #10030
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?
Original Pull Request: https://github.com/doctrine/orm/pull/6548
State: closed
Merged: No
Hey guys,
I recently realized that if you want to apply a criteria on a
PersistentCollectionby using theManyToManyPersister, the criteria MUST contain the field name relating to the database.Since we are always using property names, I got some error on ManyToMany (SQL Error: Missing fieldname).
I just wanted to add the
ClassMetadata::getColumnNamelogic to theManyToManyPersister::loadCriteriamethod so if someone applied the property name, it maps to the expected column name.This was already applied in
master: ManyToManyPersister.php#L263Would love to see this in some of the next minor releases.