extcode / cart_events

CartEvents is a TYPO3 extension and provides an own data storage for events. Events can be offered via a list and detail view and can be purchased via cart function of the Cart extension.
GNU General Public License v2.0
4 stars 3 forks source link

table not existing: tx_cartevents_domain_model_category (new Extbase Persistence Configuration) #71

Closed tastensolo closed 2 years ago

tastensolo commented 2 years ago

While using category object you need following configuration for datamapping:

needed file: cart_events/Configuration/Extbase/Persistence/Classes.php

<?php
declare(strict_types = 1);

return [
    \Extcode\CartEvents\Domain\Model\Category::class => [
        'recordType' => '\Extcode\CartEvents\Domain\Model\Category',
        'tableName' => 'sys_category',
    ]
];

otherwise the dataMapper searched for table tx_cartevents_domain_model_category, which does not exists.

Thanks for adjustment!

extcode commented 2 years ago

I added the configuration of the table (tableName), but did not set the recordType explicitly, because it should be possible that one can use all categories independently of this extension. I think explicitly restricting this can be set in own site package extension.