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

Jochen Rau jochen.rau at typoplanet.de
Wed Apr 21 15:04:31 CEST 2010


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