Project

General

Profile

Actions

Feature #66623

closed

Make mapSingleRow public to avoid unnessesary database access

Added by Jan Kiesewetter over 9 years ago. Updated 11 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2015-04-28
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:
Needs Decision

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?

Actions

Also available in: Atom PDF