Project

General

Profile

Actions

Bug #56759

closed

Mapping a table/model via TypoScript doesn't work anymore

Added by Dominik Weber over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-03-11
Due date:
% Done:

0%

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

Description

Since the 6.2 beta6 update the following code doesn't work anymore (I am trying to map the Category model in my extbase plugin):

My typoscript setup (also tried using "recordType" with my class name or TYPO3\CMS\Extbase\Domain\Model\Category):
plugin.tx_myext.persistence.classes{
Vendor/MyExt/Domain/Model/Category{
mapping{
tableName = sys_category
}
}
}

My (empty) model:
class Category extends \TYPO3\CMS\Extbase\Domain\Model\Category{
}

Now when I'm passing the model to an action like this:
/**
  • myAction
  • @param \Vendor\MyExt\Domain\Model\Category $category category
    */
    public function myAction( \Vendor\MyExt\Domain\Model\Category $category=NULL ){
    }

I get the following error (even if I use the @dontvalidate annotation):
"An error occurred while trying to call Vendor\MyExt\Controller\MyController->myAction()"

Before (in 6.2beta5) everything worked as expected. Unfortunately I couldn't find a solution to this problem.

Actions

Also available in: Atom PDF