Bug #59442

Composite primary keys including foreign entity don't work

Added by Alexander Berl over 7 years ago. Updated almost 7 years ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Persistence
Target version:
-
Start date:
2014-06-10
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

Currently, the implementation of the FlowAnnotationDriver prevents composite primary keys including an foreign entity reference do not work, as in the example of doctrine:
http://docs.doctrine-project.org/en/2.0.x/tutorials/composite-primary-keys.html#identity-through-foreign-entities

This is due to OneToOne and ManyToOne relations missing the following statement:

if ($this->reader->getPropertyAnnotation($property, 'Doctrine\ORM\Mapping\Id') !== NULL) {
    $mapping['id'] = TRUE;
}

#1

Updated by Gerrit Code Review over 7 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at https://review.typo3.org/30659

#2

Updated by Gerrit Code Review almost 7 years ago

Patch set 2 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at http://review.typo3.org/30659

Also available in: Atom PDF