Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2898

SQL-Table Prefixes example produces php notices with ManyToMany-Associations

    Details

    • Type: Documentation Documentation
    • Status: Open
    • Priority: Trivial Trivial
    • Resolution: Unresolved
    • Affects Version/s: 2.4.1
    • Fix Version/s: None
    • Component/s: ORM
    • Labels:
      None

      Description

      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']) {

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            do.ev.
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: