[TYPO3-mvc] Annotaion based relation-type-detection

Jochen Rau jochen.rau at typoplanet.de
Mon Apr 19 11:03:23 CEST 2010


Hi.

On 19.04.10 08:21, Sebastian Kurfürst wrote:
> There are a few small remarks:
> - You are directly using $reflectionService->isPropertyTaggedWith... and
> the like. While this works, it seems pretty low-level to me. More
> abstract is the method "getClassSchema", which returns you an instance
> of Tx_Extbase_Reflection_ClassSchema, where you have a more abstract
> representation of all class properties, and their types.
>
> So, I'd suggest you use this instead (but that'd be just a minor rework
> of your patch).

I agree here. It would be nice to use the (already cached) ClassSchema.

$propertyData = 
$this->reflectionService->getClassSchema($className)->getProperty($propertyName);

Regards
Jochen


More information about the TYPO3-project-typo3v4mvc mailing list