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

Thomas "Thasmo" Deinhamer thasmo at gmail.com
Wed Apr 21 15:15:35 CEST 2010


Yes, I will - I'm just not sure how to call the title of it - ideas?

oO

Thanks,
Thomas


Am 21.04.2010 15:04, schrieb Jochen Rau:
> Hi Thomas.
>
> On 21.04.10 14:11, Thomas "Thasmo" Deinhamer wrote:
>> That's of course true and maybe working as intended,
>> but have a look at the following scenario:
>>
>> Object tree:
>> Product
>> BookProduct
>> FurnitureProduct
>> TvProduct
>>
>> When all products are enlistet on a page - let's assume
>> this is action 'index' - and you create a link to a single
>> page - let's call the action 'product' - extbase/fluid will
>> generate a link with '?tx_myext_object[object]=<uid>'.
>>
>> When now the action 'product' is called with the product object,
>> it doesn't know which product type (Book, Furniture, Tv) will be
>> passed as argument, so therefor I just can check for the parent:
>>
>> public action product(Tx_MyExt_Domain_Model_Product $product){};
>>
>> If I write it this way...
>> public action product(Tx_MyExt_Domain_Model_BookProduct $book){};
>> Extbase will complain if a TvProduct or FurnitureProduct gets passed.
>>
>> But imho I would like to get an instance of either
>> Tx_MyExt_Domain_Model_BookProduct OR
>> Tx_MyExt_Domain_Model_FurnitureProduct OR
>> Tx_MyExt_Domain_Model_TvProduct.
>>
>> Hopefully I've explained the situation clear enough.
>
> Sure. That's indeed a missing feature. Could you please file an issue
> for that?
>
> Regards
> Jochen


More information about the TYPO3-project-typo3v4mvc mailing list