Project

General

Profile

Actions

Bug #67540

closed

SuperClass can not be Abstract if Extbase.Persistence Configuration set in ext_typoscript_setup.txt

Added by Philipp Wrann over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2015-06-17
Due date:
% Done:

0%

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

Description

I have an extension that works with the Superclass/Subclasses Singletable-Domainmodel-Inheritance pattern.

If i place the extbase peristence configuration in a Typoscript file and include it like this in ext_localconf.php
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:EXTKEY/Configuration/TypoScript/FrameworkConfiguration.ts">'
);

Everything works.

Now i wanted to change this to a more api-way and moved that file to /ext_typoscript_setup.txt

If i do so a fatal error is thrown:
Fatal error: Cannot instantiate abstract class Vendor\Package\Domain\Model\ModelName in /var/www/project/typo3_src/typo3/sysext/extbase/Classes/Object/Container/Container.php on line 121

So there seems to be something wrong in the bootstrap. For some Reasong an instance of the model is created without reason. But if done via the addTypoScriptSetup way its not - so that is odd.

Version used is 7.2

I will upgrade to 7.3 today and tell you if the issue is still present.

Actions

Also available in: Atom PDF