1 unresolved comment The owner has to answer or resolve it. Show the first one
98193[TASK] Move AbstractDomainObject property constants to own class
Commit message
Test this change
Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch
- Check out patch set 1
-
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/93/98193/1 && git checkout FETCH_HEAD - Cherry-pick onto main
-
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/93/98193/1 && git cherry-pick FETCH_HEAD
Review
-
Code review CR +1 Needs a vote
- Oliver Klee +1
-
Verified V +1 Needs a vote
- Oliver Klee +1
- core-ci +1 CI
Merge conflicts 16
- 98198[TASK] Set pid of domain objects without calling setPid()
- 98192[!!!][FEATURE] Add EntityInterface and ValueObjectInterface
- 97535[!!!][FEATURE] Introduce site language option "languageMode"
- 93693[TASK] Push down `AbstractDomainObject` UID and PID
- 92998[TASK] Mark AbstractDomainObject as not-internal
- 98083[!!!][TASK] Drop SingletonInterface from Context
- 97436[!!!][FEATURE] Link content elements as records
- 98077[BUGFIX] Prefer declared property type over getter and setter types
- 95445[BUGFIX] Respect l10n_mode exclude in Extbase
- 94753[FEATURE] New TCA type "coordinate"
- 96543[WIP][POC][TASK] Write and read records by the same rules and rights
- 95162[BUGFIX] Handle empty dates consistently in Extbase
- 96533[WIP][!!!][TASK] Build Extbase persistence on doctrine/orm
- 92589[TASK] Replace unneeded instanceof on xxx|null. Use a null check instead
- 91026[WIP][BUGFIX] Let custom `TypeInterface` handle convertion on their own
- 79450[WIP][BUGFIX] Cascade remove will also remove hidden childs
Show 11 more changes Show less
Issues 1
Files 18
- typo3/sysext/core/Documentation/Changelog/15.0/Deprecation-111657-AbstractDomainObjectPropertyConstants.rst2new+82 −0
- typo3/sysext/extbase/Classes/DomainObject/AbstractDomainObject.php3+20 −5
- typo3/sysext/extbase/Classes/DomainObject/DomainObjectProperty.php3new+34 −0
- typo3/sysext/extbase/Classes/EventListener/ExtbaseHistoryTracker.php+3 −2
- typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapper.php+15 −15
- typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php+2 −2
- typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbQueryParser.php+3 −3
- typo3/sysext/extbase/Classes/Persistence/Generic/Backend.php+18 −17
- typo3/sysext/extbase/Classes/Persistence/Generic/CleanStateTracker.php+3 −2
- typo3/sysext/extbase/Tests/Functional/Persistence/AddTest.php+2 −2
- typo3/sysext/extbase/Tests/Functional/Persistence/BehaviourConformanceTest.php+4 −3
- typo3/sysext/extbase/Tests/Functional/Persistence/QueryHiddenTranslatedRecordsTest.php+4 −4
- typo3/sysext/extbase/Tests/Functional/Persistence/QueryLocalizedDataTest.php+319 −319
- typo3/sysext/extbase/Tests/Functional/Persistence/ReadingTranslationsTest.php+14 −13
- typo3/sysext/extbase/Tests/Functional/Persistence/TranslationInlineChildrenTest.php+2 −2
- typo3/sysext/extbase/Tests/Functional/Persistence/TranslationWriteTest.php+6 −6
- typo3/sysext/extbase/Tests/Unit/Reflection/ClassSchemaTest.php+6 −6
- typo3/sysext/install/Configuration/ExtensionScanner/Php/ClassConstantMatcher.php+25 −0
Review log 910
-
Alexander Schnitzler uploaded patch set 1 11/29/26, 13:16
-
core-ci voted on patch set 1 V +1 11/29/26, 13:23 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115959
-
Alexander Schnitzler wrote 11/29/26, 14:40
Topic set to extbase -
Alexander Schnitzler commented on patch set 1 11/29/26, 14:41
-
Torben Hansen commented on patch set 1 11/29/26, 16:19
Deprecation-111657-AbstractDomainObjectPropertyConstants.rst:35Unsure about this. Is`nt this possible in PHP 8.5 (which is the minimum requirement for TYPO3 v15). -
Oliver Klee commented on patch set 1 V +1 11/29/26, 17:32
DomainObjectProperty.php:23As this class holds not data and no functionality, could/should it be an interface instead? -
Oliver Klee commented on patch set 1 11/29/26, 18:00
AbstractDomainObject.php:32As the whole class is `@internal`, it's not covered by our BC promise, and hence we probably don't need to deprecate the old constants and can remove them directly. -
Alexander Schnitzler commented on patch set 1 11/29/26, 18:38
Deprecation-111657-AbstractDomainObjectPropertyConstants.rst:35Reply UnresolvedYou are right but I am not sure if and how TYPO3 handles #\Deprecated. Never seen this being used in the past. Do you know?AbstractDomainObject.php:32ReplyFirst, I thought so too. Then I thought how people would possibly use this and that would probably be via `self::` or `static::` which isn't that easy to spot. With rector, AI and IDE's however, that replacement is super easy. When you're hit by this removal, it's easy to solve. My opinion on the matter isn't that strong. Would love to see those constants go in 15 but wouldn't mind to keep them for a version...DomainObjectProperty.php:23ReplyI think there is a slight difference between choosing an interface or a class for namespaced constants. The final, non instantiable class makes sure the constants don't end up in child classes via self/static whereas the interface can be implemented by any class and then inherits the constants. That's what I want to get rid of here. -
Oliver Klee commented on patch set 1 11/29/26, 19:42
DomainObjectProperty.php:23ReplyAh, makes sense. Thank you for the explanation! -
Oliver Klee commented on patch set 1 CR +1 11/29/26, 19:42
AbstractDomainObject.php:32ReplyAcknowledged