Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2089

Modify OneToMany to allow unidirectional associations without the need of a JoinTable


    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.x
    • Fix Version/s: 3.0, 2.5
    • Component/s: ORM
    • Security Level: All
    • Environment:
      Debian Wheezy, Mysql 5.1, Apache2, PHP 5.4


      As I sayd in the title, it would be nice if the ORM layer could permit to map a 1:n association in the db as an unidirectional OneToMany in the classes, without using a JoinTable in the database.
      This would permit us to get rid of the unnecessary database JoinTable, which creates disorder and decreases performance for no valuable reason.

      Is it possible?


        Enea Bette created issue -
        Enea Bette made changes -
        Field Original Value New Value
        Attachment otm without jointable.png [ 11337 ]
        Enea Bette added a comment - A little up... for inspiration from JPA
        Benjamin Eberlei made changes -
        Fix Version/s 2.5 [ 10522 ]
        Fix Version/s 2.4 [ 10321 ]

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

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


          • Assignee:
            Benjamin Eberlei
            Enea Bette
          • Votes:
            0 Vote for this issue
            1 Start watching this issue


            • Created: