Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2806

@ElementCollection does work as expected

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
      None
    • Environment:
      Doctrine ORM 2.4 and DoctrineORMModule for zend 2

      Description

      I notice there is there is a @ElementCollection($tableName), but it does not work as expected.

      I used doctrine-module orm:schema-tool:create, the table defined in @ElementCollection($tableName) was not generated.

      Have a look at @ElementCollection support in JPA 2.0.

      http://wiki.eclipse.org/EclipseLink/Examples/JPA/2.0/ElementCollections#Example_of_an_ElementCollection_relationship_annotations

      Doctrine could design an @Embedable annotation firstly, @ElementColleciton can be used with a Collection of @Embedable objects, or use a Collections of primate type directly(with @CollectionTable and @Column annotations).

        Issue Links

          Activity

          Hide
          Benjamin Eberlei added a comment -

          Duplicate of DDC-298

          Show
          Benjamin Eberlei added a comment - Duplicate of DDC-298
          Hide
          Benjamin Eberlei added a comment -

          This was never finished, the code is left over.

          Show
          Benjamin Eberlei added a comment - This was never finished, the code is left over.

            People

            • Assignee:
              Benjamin Eberlei
              Reporter:
              Hantsy Bai
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: