[TYPO3-dev] Extbase Default Getter of 1:n Relation

Philipp Schiffmann p.schiffmann at bitmotion.de
Wed Oct 15 13:26:20 CEST 2014


Hi Till,


> I want to do PHP class methods "on the fly":

what you want is called "magic methods" in PHP, specifically the __call()
method:
http://php.net/manual/de/language.oop5.magic.php

If you don't know how to utilize this behaviour, take a look at the
implementation of the Extbase repository base class:
https://git.typo3.org/Packages/TYPO3.CMS.git/blob/2b9bd40768f03846ec2cea53ddce4b686259b2f5:/typo3/sysext/extbase/Classes/Persistence/Repository.php#l270

Cheers,
Philipp



More information about the TYPO3-dev mailing list