Bug #56759
closedMapping a table/model via TypoScript doesn't work anymore
0%
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{
}
/**
- 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.
Updated by Dominik Weber over 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).
Updated by Dominik Weber over 10 years ago
Sorry, you can close this ticket. Somehow it's working now, maybe some caching problem.
Updated by Wouter Wolters over 10 years ago
- Status changed from New to Closed
Thanks for reporting that back it was not an issue :-)