diff --git a/Configuration/Extbase/Persistence/Classes.php b/Configuration/Extbase/Persistence/Classes.php new file mode 100644 index 0000000000000000000000000000000000000000..0bea07f4da3ea51ed83438d4bbd3af7094e78eff --- /dev/null +++ b/Configuration/Extbase/Persistence/Classes.php @@ -0,0 +1,16 @@ +<?php +declare(strict_types=1); + +// if you need to change this, keep in mind the changes need to be done in +// Configuration/TypoScript/Common/setup.typoscript for TYPO3 9, too +return [ + \SGalinski\SgJobs\Domain\Model\FileReference::class => [ + 'tableName' => 'sys_file_reference' + ], + \SGalinski\SgJobs\Domain\Model\JobApplication::class => [ + 'tableName' => 'tx_sgjobs_domain_model_job_application' + ], + \SGalinski\SgJobs\Domain\Model\ExperienceLevel::class => [ + 'tableName' => 'tx_sgjobs_domain_model_experience_level' + ] +]; diff --git a/Configuration/TypoScript/Common/setup.typoscript b/Configuration/TypoScript/Common/setup.typoscript index d8efbf31a2313036347a565420838536c21f5169..f36453bb0d5305d271eac3d218f845029fcd7a05 100644 --- a/Configuration/TypoScript/Common/setup.typoscript +++ b/Configuration/TypoScript/Common/setup.typoscript @@ -1,5 +1,7 @@ config.tx_extbase { persistence { + # @deprecated This configuration does not work in TYPO3 10 at all, you need to also change + # Configuration/Extbase/Persistence/Classes.php classes { SGalinski\SgJobs\Domain\Model\FileReference { mapping {