[TYPO3-mvc] How to extend a model class from within another extension?

Thomas "Thasmo" Deinhamer thasmo at gmail.com
Mon Jan 18 01:27:40 CET 2010


Awww. ;o)

I guess I'd need to come up with a new TS mapping property,
to tell Extbase which model class is actually the one to load - right?

As I'm not too 'inside' Extbase, I'd get stuck even knowing where
to implement this - and I guess there're many places to implement it?!

Thanks,
Thomas


Franz Koch schrieb:
> Hi again,
> 
>>> do you mean overwriting the model class magic __set and __get methods,
>>> calling the parent methods, and if nothing was returned, implement a
>>> custom routine, to fetch fields of the TCA?
>>
>> Maybe something like this (untested):
>>
>> public function __call($methodName, $arguments) {
> ..
>> }
> 
> Unless I haven't overseen something it doesn't work because the model 
> doesn't anywhere have the raw DB data available - only the predefined 
> properties that got filled by extbase. So you might either hack your 
> base model or start implementing that feature in extbase.
> 


More information about the TYPO3-project-typo3v4mvc mailing list