Feature #34414

JsonView's _exposeObjectIdentifier configurable

Added by Adrian Föder over 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Could have
Assignee:
Category:
MVC
Start date:
2012-02-29
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
No
Complexity:
easy

Description

The configuration setting for the MVC JsonView allows exposing an object's persistence identifier.
Currently, that configuration value is only regarded when TRUE and resulting in a fixed '__identity' key.
It could be improved with allowing either TRUE or a specific value which will become the respective key.

so,

  blog:
    _exposeObjectIdentifier: TRUE

will result in {"__identity":"e4f40dfc-8c6e-4414-a5b1-6fd3c5cf7a53"} (matching the current behaviour), while
  blog:
    _exposeObjectIdentifier: 'guid'

will result in {"guid":"e4f40dfc-8c6e-4414-a5b1-6fd3c5cf7a53"}
#1

Updated by Gerrit Code Review over 9 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9297

#2

Updated by Gerrit Code Review over 9 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9297

#3

Updated by Gerrit Code Review over 9 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9297

#4

Updated by Karsten Dambekalns about 9 years ago

  • Target version changed from 1.1 to 1.1 RC1
#5

Updated by Gerrit Code Review about 9 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9297

#6

Updated by Sebastian Kurfuerst about 9 years ago

  • Status changed from Under Review to Resolved
  • Target version changed from 1.1 RC1 to 2.0 beta 1
  • % Done changed from 0 to 100

Also available in: Atom PDF