Feature #73752
closedAllow accessing ObjectStorage as array in Fluid and other places
100%
Description
By creating an extremely simple aliasing of "toArray()" on ObjectStorage allowing it to be called as "getArray()" enables things like:
ObjectAccess::getPropertyPath($subject, 'objectstorageproperty.array.4') to get the 4th element
{myObject.objectstorageproperty.array.4} in Fluid (including {myObject.objectstorageproperty.array.{dynamicIndex}} in v8)
Updated by Gerrit Code Review over 8 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46961
Updated by Claus Due over 8 years ago
Can be followed up by a change to clean up ObjectAccess::getPropertyPath()'s custom handling of numerical indexes of objects; which would be a breaking change but would significantly lower the amount of decisions ObjectAccess has to make about how to access a certain object/index.
Updated by Gerrit Code Review over 8 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46961
Updated by Anonymous over 8 years ago
- Status changed from Under Review to Resolved
Applied in changeset b867832b9c15cf6c3ecd9a63ada8235605c23176.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed