Project

General

Profile

Actions

Bug #56759

closed

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

Added by Dominik Weber about 10 years ago. Updated about 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 #1

Updated by Dominik Weber about 10 years ago

Update: Of course it's "Vendor\MyExt\Domain\Model\Category" not "Vendor/MyExt/Domain/Model/Category" (got it wrong in this ticket, but correct in my ts setup).

Actions #2

Updated by Dominik Weber about 10 years ago

Sorry, you can close this ticket. Somehow it's working now, maybe some caching problem.

Actions #3

Updated by Wouter Wolters about 10 years ago

  • Status changed from New to Closed

Thanks for reporting that back it was not an issue :-)

Actions

Also available in: Atom PDF