Project

General

Profile

Actions

Bug #62545

closed

Record type constraints of subclasses prevent loading of parent class objects

Added by Frederik Vosberg about 10 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
-- undefined --
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2014-10-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
On Location Sprint

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.

Actions #1

Updated by Gerrit Code Review about 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

Actions #2

Updated by Gerrit Code Review over 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

Actions #3

Updated by Gerrit Code Review about 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

Actions #4

Updated by Mathias Schreiber about 9 years ago

  • Target version deleted (next-patchlevel)
Actions #5

Updated by Anja Leichsenring almost 8 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.

Actions

Also available in: Atom PDF