Issue Bug Closed

#64967objectType in repository is not working with subclasses

Eike Starkmann 02/10/15, 13:12 updated 10/21/16, 15:12

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.