Bug #62545
closedRecord type constraints of subclasses prevent loading of parent class objects
0%
Description
Hi there,
following scenario:
class Mother {
}
class Daughter extends Mother {
}
config.tx_extbase.persistence.classes {
Mother {
mapping {
tableName = tt_content
}
}
Rattazonk\Extbasepages\Domain\Model\Content\Shortcut {
mapping.recordType = littleGirl
}
Mother.subclasses.1414596636 = Daughter
}
I had a mother class for some tt_content types. Now I found a special case and needed polymorphism, so I implemented the Daughter class with the recordType littleGirl. So the DaughterRepository only returns little girls. But the MotherRepository doesnt work anymore because of a constraint for types because of the subclasses type constraint.
Already wrote a patch, I am going to upload it to gerrit.
So as a summary:
A subclass with a defined recordType in extbase breaks a parent class without a type.
Updated by Gerrit Code Review almost 10 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33610
Updated by Gerrit Code Review about 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33610
Updated by Gerrit Code Review almost 9 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33610
Updated by Mathias Schreiber almost 9 years ago
- Target version deleted (
next-patchlevel)
Updated by Anja Leichsenring over 7 years ago
- Status changed from Under Review to Closed
- Priority changed from Must have to -- undefined --
- Sprint Focus set to On Location Sprint
issue closed, as it doesn't exist anymore.