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

doctrinebot opened this Issue Jan 9, 2014 · 0 comments

2 participants


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::MANYTOMANY) {

should be replaced by ...

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

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment