Jira issue originally created by user alex88:
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.
Comment created by alex88:
Created pull request #605
Comment created by @doctrinebot:
A related Github Pull-Request [GH-605] was closed:
Comment created by @ocramius:
Known limitation affecting only post-insert ID generation (mysql et simila)
Issue was closed with resolution "Can't Fix"