Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_news
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_news
Commits
c16d94a6
Commit
c16d94a6
authored
4 years ago
by
Kevin Ditscheid
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Relocated extbase persistence configuration to new Classes.php
parent
a6160b8a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!25
Feature upgrade to typo3 10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Configuration/Extbase/Persistence/Classes.php
+70
-0
70 additions, 0 deletions
Configuration/Extbase/Persistence/Classes.php
Configuration/TypoScript/Common/setup.typoscript
+2
-0
2 additions, 0 deletions
Configuration/TypoScript/Common/setup.typoscript
with
72 additions
and
0 deletions
Configuration/Extbase/Persistence/Classes.php
0 → 100644
+
70
−
0
View file @
c16d94a6
<?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\SgNews\Domain\Model\News
::
class
=>
[
'tableName'
=>
'pages'
,
'recordType'
=>
\SGalinski\SgNews\Domain\Model\News
::
DOK_TYPE_NEWS
,
'properties'
=>
[
'highlighted'
=>
[
'fieldName'
=>
'tx_sgnews_highlighted'
],
'neverHighlighted'
=>
[
'fieldName'
=>
'tx_sgnews_never_highlighted'
],
'relatedNews'
=>
[
'fieldName'
=>
'tx_sgnews_related_news'
],
'newsAuthor'
=>
[
'fieldName'
=>
'tx_sgnews_news_author'
],
'lastUpdated'
=>
[
'fieldName'
=>
'lastUpdated'
],
'creationDate'
=>
[
'fieldName'
=>
'crdate'
],
'teaser1Image'
=>
[
'fieldName'
=>
'tx_sgnews_teaser1_image'
],
'teaser2Image'
=>
[
'fieldName'
=>
'tx_sgnews_teaser2_image'
],
'tags'
=>
[
'fieldName'
=>
'tx_sgnews_tags'
],
'likes'
=>
[
'fieldName'
=>
'tx_sgnews_likes'
],
'contentFromAnotherPage'
=>
[
'fieldName'
=>
'tx_sgnews_content_from_another_page'
],
'location'
=>
[
'fieldName'
=>
'tx_sgnews_location'
],
'dateEnd'
=>
[
'fieldName'
=>
'tx_sgnews_date_end'
]
]
],
\SGalinski\SgNews\Domain\Model\Category
::
class
=>
[
'tableName'
=>
'pages'
,
'recordType'
=>
\SGalinski\SgNews\Domain\Model\Category
::
DOK_TYPE_CATEGORY
,
'properties'
=>
[
'teaser1Image'
=>
[
'fieldName'
=>
'tx_sgnews_teaser1_image'
],
'teaser2Image'
=>
[
'fieldName'
=>
'tx_sgnews_teaser2_image'
]
]
],
\SGalinski\SgNews\Domain\Model\Tag
::
class
=>
[
'tableName'
=>
'sys_category'
],
\SGalinski\SgNews\Domain\Model\FileReference
::
class
=>
[
'tableName'
=>
'sys_file_reference'
]
];
This diff is collapsed.
Click to expand it.
Configuration/TypoScript/Common/setup.typoscript
+
2
−
0
View file @
c16d94a6
config.tx_extbase {
persistence {
classes {
# @deprecated This configuration does not work in TYPO3 10 at all, you need to also change
# Configuration/Extbase/Persistence/Classes.php
SGalinski\SgNews\Domain\Model\News {
mapping {
tableName = pages
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment