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

Thomas "Thasmo" Deinhamer thasmo at gmail.com
Tue Apr 20 00:06:59 CEST 2010


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.

Nevertheless, well done - I really like it this far!

Thanks a lot on this,
Thomas


Am 19.04.2010 09:58, schrieb Jochen Rau:
> Hi.
>
> On 18.04.10 16:25, Andreas Kießling wrote:
>> Am 18.04.10 15:55, schrieb Sebastian Kurfürst:
>>>> could result in (tx_dam.media_type IN (1,2,3,4,5))
>>> This would not work, as when you create a new Object "Dam", the system
>>> does not know which recordType to use when storing it.
>>
>> You mean creating a new record and have it persisted by extbase?
>> For the moment, i just tried to display my existing records created in
>> the backend.
>
> Yes. I think that's what he meant. For a more general solution in
> Extbase we have to ensure uniqueness in this case. Then, an (additional)
> option "recordTypes" would lead us to duplicated configuration.
>
> Regards
> Jochen


More information about the TYPO3-project-typo3v4mvc mailing list