[TYPO3-mvc] RFT (Request For Tests): support for TCA group fields (hurry to probably get it into 1.3.0)
Kevin Ulrich Moschallski
km at 3digit.de
Mon Jan 24 21:32:08 CET 2011
Hi Franz,
i just tested it with MM_opposite_field without luck. The parents table
field is incremented by one, but no relation is written to the MM table
and the child table field isn't incremented.
Here my TCA:
parent:
'items' => array(
'exclude' => 0,
'label' => 'Items',
'config' => array(
'type' => 'group',
'internal_type' => 'db',
'allowed' => 'tx_myext_domain_model_item',
'foreign_table' =>
'tx_myext_domain_model_item',
'MM_opposite_field' => 'portals',
'MM' => 'tx_myext_portal_item_mm',
'size' => 5,
'maxitems' => 9999
)
),
child:
'portals' => array(
'exclude' => 0,
'label' => 'Portals',
'config' => array(
'type' => 'group',
'internal_type' => 'db',
'allowed' => 'tx_myext_domain_model_portal',
'foreign_table' => 'tx_myext_domain_model_portal',
'foreign_field' => 'items',
'size' => 5,
'maxitems' => 9999,
'MM' => 'tx_myext_portal_item_mm',
)
),
There is also a problem with MM_opposite_field in the core where the
value of the child table isn't incremented, you remeber?
http://bugs.typo3.org/view.php?id=16294.
I'll look at your patch and maybe we could fix these together.
Regards,
Kevin
On 2011-01-24 19:11:55 +0100, Kevin Ulrich Moschallski said:
> Hi Franz,
>
> i'll try to test it this evening if my wife let me :)
>
> Regards,
> Kevin
>
> Am 24.01.2011 um 17:22 schrieb Franz Koch:
>
>> Hey list,
>>
>> I've been working on the support for TCA group fields and need some
>> volunteers to test it. While my local tests (mostly only reading stuff
>> from the DB) didn't show any problems so far, I'm for sure not able to
>> test every scenario out there. So I'd like to ask you guys to test the
>> patch in your setups.
>>
>> Unfortunately the code in TYPO3 dealing with group fields and
>> especially the "tablenames" column in MM relations is not that easy to
>> read and understand, but I hope I got it right and it's working
>> correctly for regular group fields and also MM_opposite_field
>> relations. If there's anybody out there dealing with group field
>> relation beeing actively manipulated (removing/adding relations) by
>> extbase is encouraged to test and give feedback. The more feedback, the
>> better are the chances to still get this into 1.3.0 (so Typo3 4.5).
>>
>> So please test the patch and give feedback ASAP (of course only test it
>> in your DEV setups, not on live website! - is still experimental).
>>
>> Thanks a lot.
>>
>> --
>> kind regards,
>> Franz Koch
>> _______________________________________________
>> TYPO3-project-typo3v4mvc mailing list
>> TYPO3-project-typo3v4mvc at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
More information about the TYPO3-project-typo3v4mvc
mailing list