[TYPO3-mvc] [!!!] FYI: Implemented first version of single table inheritance.

Jochen Rau jochen.rau at typoplanet.de
Wed Apr 21 12:07:38 CEST 2010


Hi Thomas.

On 20.04.10 00:06, Thomas "Thasmo" Deinhamer wrote:
> I had some time to try single table inheritance in my extension,
> and I came to a situation, where Extbase does load the base class,
> rather then the subclass/extending class.
>
> May this be based on the fact, that Extbase only returns instances
> of subclasses when using repositories directly?
>
> Like, when I pass an object to an action,
> ?tx_myext_object[object]=8
> Extbase loads the base class 'Object' instead of the
> type which was configured for this object in the backend.
>
> Is this working as intended or a bug?
> When I use the SubobjectRepository directly,
> the repository returns a SubObject, like supposed.

What class Extbase takes for transforming an incoming 
"?tx_myext_object[object]=8" into an object depends upon the type given 
in the php doc of the action. Could you please post the action?

Regards
Jochen


More information about the TYPO3-project-typo3v4mvc mailing list