Task #34426

How to receive the correct class name for an object?

Added by Andreas Förthner almost 9 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Should have
Category:
Reflection
Start date:
2012-02-29
Due date:
% Done:

100%

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

Description

Currently there is no helper method to find the correct class name of a given object. The reflection service should provide such a method.

For now I would say we only have to handle doctrine lazy loading proxies and return the parente class for them.

Can someone imagine different situations where get_class($object) does not return the correct (expected) class name from a users perspective?


Related issues

Related to TYPO3.Comments - Bug #34763: Occurence of proxied objectResolvedAdrian Föder2012-03-12

Actions
Has duplicate TYPO3.Flow - Feature #34783: Provide utility method to get unproxied class nameClosed2012-03-13

Actions
#1

Updated by Gerrit Code Review almost 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/9312

#2

Updated by Karsten Dambekalns over 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF