#66623Make mapSingleRow public to avoid unnessesary database access
Description
In case of content elements build with Extbase and Fluid or other datasources the DataMapper can be used to transfer an array to an object.
I use the following to transfer the already available data array of a content element to my content element object:
https://bitbucket.org/t3easy_de/basecontent/src/b3f3f8b2faeaf00bef75c35a99c063342b0b592b/Classes/Controller/ContentObjectController.php?at=develop#cl-47
This avoids the injection and call to the repository and use the findByUid(data[‘uid’]) and at the end do the same and call the DataMapper.
Could we make the mapSingleRow public and define “map” and “mapSingleRow” as api?
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.