Project

General

Profile

Actions

Bug #64967

closed

objectType in repository is not working with subclasses

Added by Eike Starkmann almost 10 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2015-02-10
Due date:
% Done:

0%

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

Description

Hi,

I have a dataRepository which can be configured to deliver different objects.

For that i use the property objectType.

$this->dataRepository->setObjectType($this->settings['objectType']);

This is working with "normal" classes but when i choose a subclass it is not.

Example:
If the situation would be like this:

SubClass extends Class

$this->dataRepository->setObjectType(\...\SubClass);

I get an SQL error when using the dataRepository:

     Table 'database.tx_something_domain_model_subclass' doesn't exist

It looks like the mapping defined in ext_typoscript_setup is not respected.

Actions #1

Updated by Alexander Opitz almost 10 years ago

  • Category set to Extbase
Actions #2

Updated by Anja Leichsenring about 8 years ago

  • Status changed from New to Closed

this ticket is very old and without activity. The issue described is not reproducible anymore.

Actions

Also available in: Atom PDF