Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2826

Add support for mapping collections of embeddable objects


    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All


      In Hibernate we can do something like this:

          public class User {
             public String getLastname() { ...}
             @CollectionTable(name="Addresses", joinColumns=@JoinColumn(name="user_id"))
                @AttributeOverride(name="street1", column=@Column(name="fld_street"))
             public Set<Address> getAddresses() { ... } 
          public class Address {
             public String getStreet1() {...}

      Basically a collection of value objects is mapped to a new table. Currently Doctrine2 is on its way to support value objects

      However, this implementation won't support mapping a collection of objects to a new table and the only way to circumvent this issue is to treat the address an an entity and use an one-to-many unidirectional relationship through a many-to-many join table


        songoko songowan created issue -
        Doctrine Bot added a comment -

        A related Github Pull-Request [GH-835] was closed:

        Doctrine Bot added a comment - A related Github Pull-Request [GH-835] was closed:

        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-2826, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)


          • Assignee:
            Benjamin Eberlei
            songoko songowan
          • Votes:
            2 Vote for this issue
            4 Start watching this issue


            • Created: