[TYPO3-mvc] bug? extbase doesn't use getter

Bastian Waidelich bastian at typo3.org
Wed Jun 9 12:46:09 CEST 2010


Dmitri Pisarev wrote:

Hi again,

> Dennis, I hope you do realize it's not really clean either, and
> definitely needs some review/testing...

I just had a very short look at your patch and noticed one little glitch:
Instead of trying to figure out the right getter method, you should make 
use of
Tx_Extbase_Reflection_ObjectAccess::getProperty()
like:
$arr[$property->name] = 
Tx_Extbase_Reflection_ObjectAccess::getProperty($object, $property->name);

That will make sure that it works with array-classes too.

Bastian


More information about the TYPO3-project-typo3v4mvc mailing list