Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2338

Entity with composite foreign keys identifiers should be persisted after related entities without exception

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: Git Master
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Labels:
    • Environment:
      Mac OSX 10.8, php 5.4.11, doctrine git master version

      Description

      I've seen that when you create an entity with a composite foreign key as identifier it cannot be flushed until the related entities are already flushed to the database and not just persisted.

      It would be nice to let the user flush all the entities together and just INSERT first the related entities to get the ID and then use that to INSERT the entity with composite foreign keys.

      I'm going to create a pull request with the failing test.

        Activity

        Alessandro Tagliapietra created issue -

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Alessandro Tagliapietra
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: