DDC-2898: SQL-Table Prefixes example produces php notices with ManyToMany-Associations #3613

Open
opened 2026-01-22 14:23:44 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Jan 9, 2014).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user doev:

source: http://docs.doctrine-project.org/en/latest/cookbook/sql-table-prefixes.html

In class TablePrefix the line ...

if ($mapping['type'] == \Doctrine\ORM\Mapping\ClassMetadataInfo::MANY_TO_MANY) {

should be replaced by ...

if ($mapping['type'] == \Doctrine\ORM\Mapping\ClassMetadataInfo::MANY_TO_MANY && $mapping['isOwningSide']) {

Originally created by @doctrinebot on GitHub (Jan 9, 2014). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user doev: source: http://docs.doctrine-project.org/en/latest/cookbook/sql-table-prefixes.html In class TablePrefix the line ... if ($mapping['type'] == \Doctrine\ORM\Mapping\ClassMetadataInfo::MANY_TO_MANY) { should be replaced by ... if ($mapping['type'] == \Doctrine\ORM\Mapping\ClassMetadataInfo::MANY_TO_MANY && $mapping['isOwningSide']) {
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3613