thuecat/Configuration/Extbase/Persistence/Classes.php

63 lines
2.1 KiB
PHP
Raw Normal View History

<?php
declare(strict_types=1);
use WerkraumMedia\ThueCat\Domain\Model\Backend\ImportConfiguration;
use WerkraumMedia\ThueCat\Domain\Model\Backend\ImportLog;
use WerkraumMedia\ThueCat\Domain\Model\Backend\ImportLogEntry;
use WerkraumMedia\ThueCat\Domain\Model\Backend\ImportLogEntry\MappingError;
use WerkraumMedia\ThueCat\Domain\Model\Backend\ImportLogEntry\SavingEntity;
use WerkraumMedia\ThueCat\Domain\Model\Backend\Organisation;
use WerkraumMedia\ThueCat\Domain\Model\Backend\ParkingFacility;
use WerkraumMedia\ThueCat\Domain\Model\Backend\TouristInformation;
use WerkraumMedia\ThueCat\Domain\Model\Backend\Town;
use WerkraumMedia\ThueCat\Domain\Model\Frontend\ParkingFacility as FrontendParkingFacility;
use WerkraumMedia\ThueCat\Domain\Model\Frontend\TouristAttraction as FrontendTouristAttraction;
use WerkraumMedia\ThueCat\Domain\Model\Frontend\Town as FrontendTown;
return [
Organisation::class => [
'tableName' => 'tx_thuecat_organisation',
],
Town::class => [
'tableName' => 'tx_thuecat_town',
],
TouristInformation::class => [
'tableName' => 'tx_thuecat_tourist_information',
],
ParkingFacility::class => [
'tableName' => 'tx_thuecat_parking_facility',
],
ImportConfiguration::class => [
'tableName' => 'tx_thuecat_import_configuration',
],
ImportLog::class => [
'tableName' => 'tx_thuecat_import_log',
],
ImportLogEntry::class => [
'tableName' => 'tx_thuecat_import_log_entry',
'subclasses' => [
'savingEntity' => SavingEntity::class,
'mappingError' => MappingError::class,
],
],
SavingEntity::class => [
'tableName' => 'tx_thuecat_import_log_entry',
'recordType' => 'savingEntity',
],
MappingError::class => [
'tableName' => 'tx_thuecat_import_log_entry',
'recordType' => 'mappingError',
],
FrontendTouristAttraction::class => [
'tableName' => 'tx_thuecat_tourist_attraction',
],
FrontendTown::class => [
'tableName' => 'tx_thuecat_town',
],
FrontendParkingFacility::class => [
'tableName' => 'tx_thuecat_parking_facility',
],
];