[TYPO3-mvc] IRRE foreign_selector ("associative entity")

Martin Kutschker masi-no at spam-typo3.org
Thu Dec 31 14:48:10 CET 2009


Franz Koch schrieb:
> Hi Martin,
> 
>>>     1     n       n     1
>>> CD---------Track---------Recording
>>> title      number        title
>>> tacks      recording     length
>>> producer
>>
>> This is what I had in mind.
>>
>> If I set this up with a "foreign_selector" nothing will happen. So I
>> only need to add custom
>> functions to my repositories if I want to store and retrieve the
>> tracks, right? ExtBase will not
>> help me, but it will not stand in my way.
> 
> how did you solve this? Using a intermediate object or by writing custom
> methods in your repository and a custom dataMaper? I currently have the
> same issue :(

I didn't tackle this problem yet. I was still strugging with the ISO-sex selector problem.

I created a value object for it and realized then that I don't want a DB table for it. As the
storage format is an integer I want to store it directly in the table of the model. Hm. Odd that a
simple TCA selector field with fixed values is so troublesome.

Masi


More information about the TYPO3-project-typo3v4mvc mailing list