Doctrine Website
  1. Doctrine Website
  2. DWEB-99

5.14. Many-To-Many, Bidirectional Missing target-entity

    Details

    • Type: Documentation Documentation
    • Status: Open
    • Priority: Blocker Blocker
    • Resolution: Unresolved
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      Documentation missing a tag to work

      Description

      <doctrine-mapping>
      <entity name="User">
      <many-to-many field="groups" inversed-by="users">
      <join-table name="users_groups">
      <join-columns>
      <join-column="user_id" referenced-column-name="id" />
      </join-columns>
      <inverse-join-columns>
      <join-column="group_id" referenced-column-name="id" />
      </inverse-join-columns>
      </join-table>
      </many-to-many>
      </entity>

      <entity name="Group">
      <many-to-many field="users" mapped-by="groups" />
      </entity>
      </doctrine-mapping>

      should be this to work:

      <doctrine-mapping>
      <entity name="User">
      <many-to-many field="groups" inversed-by="users" target-entiy="Group">
      <join-table name="users_groups">
      <join-columns>
      <join-column="user_id" referenced-column-name="id" />
      </join-columns>
      <inverse-join-columns>
      <join-column="group_id" referenced-column-name="id" />
      </inverse-join-columns>
      </join-table>
      </many-to-many>
      </entity>

      <entity name="Group">
      <many-to-many field="users" mapped-by="groups" target-enty="User" />
      </entity>
      </doctrine-mapping>

        Activity

        Dennis created issue -

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DWEB-99, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Dennis
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: