-
Notifications
You must be signed in to change notification settings - Fork 653
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Deprecate argument RelationHandler->writeForeignField()
Argument $skipSorting of RelationHandler->writeForeignField() is used to pass $callFromImpExp from DataHandler. The ext:impexp related @internal $callFromImpExp DataHandler property however is never used and thus obsolete itself. The patch drops DataHandler->$callFromImpExp and deprecates last RelationHandler->writeForeignField() argument. Resolves: #95062 Releases: master Change-Id: If91c2de1e762c97fb50a72c84698a849df807bf2 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70848 Tested-by: core-ci <typo3@b13.com> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Benni Mack <benni@typo3.org> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Benni Mack <benni@typo3.org>
- Loading branch information
Showing
4 changed files
with
61 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...er/Deprecation-95062-SkipSortingArgumentOfRelationHandler-writeForeignField.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
.. include:: ../../Includes.txt | ||
|
||
=================================================================================== | ||
Deprecation: #95062 - $skipSorting argument of RelationHandler->writeForeignField() | ||
=================================================================================== | ||
|
||
See :issue:`95062` | ||
|
||
Description | ||
=========== | ||
|
||
To further clean up :php:`TYPO3\CMS\Core\DataHandling\DataHandler`, the unused | ||
internal property :php:`callFromImpExp` has been removed. It's single usage has | ||
been the 4th argument of :php:`TYPO3\CMS\Core\Database\RelationHandler->writeForeignField()`. | ||
Handing over this argument to :php:`RelationHandler->writeForeignField()` has been | ||
marked as deprecated. | ||
|
||
|
||
Impact | ||
====== | ||
|
||
Calling :php:`TYPO3\CMS\Core\Database\RelationHandler->writeForeignField()` with | ||
4th argument raises a deprecation level error. | ||
|
||
|
||
Affected Installations | ||
====================== | ||
|
||
It is unlikely instances contain extensions using the above argument, since | ||
it carried a core internal information tailored for ext:impexp specific needs. | ||
The extension scanner will find usages as weak match. | ||
|
||
|
||
Migration | ||
========= | ||
|
||
No migration available. Consuming extensions should drop that argument. | ||
Calling RelationHandler->writeForeignField() with non-default true as fourth | ||
argument skipped some relation-sorting related code, which should be avoided. | ||
|
||
.. index:: Database, FullyScanned, ext:core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters