Skip to content
Snippets Groups Projects
Commit a2f0b95a authored by Benni Mack's avatar Benni Mack
Browse files

[TASK] Use a Identity Map for Record objects

When loading Record objects, and we use Relations
in one of the next patches, the main issue will
be that we might run in recursions when fetching
relations. This can be resolved by re-using created
Record objects by utilizing the
Identity Map pattern (https://en.wikipedia.org/wiki/Identity_map_pattern)
which keeps track (context-wise) of the loaded
records.

In a way to unify this logic, the "RecordRememeberer"
for Page Module has now been removed as this
is the exact purpose of the Identity Map.

The next step is to actually utilize the Record
API in the Page module replacing arrays there completely.

Resolves: #104367
Related: #103783
Releases: main
Change-Id: Idd56a49c421fd722ed35eedded365420a7479bea
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/85047


Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 007367dc
No related merge requests found
Showing with 126 additions and 72 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment