[TYPO3-mvc] Model object tree building with Tx_Extbase_Persistence_ObjectStorage property

Claus Fassing claus at fassing.eu
Sun Oct 3 14:13:22 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Franz.

Am 02.10.2010 10:31, schrieb Franz Koch:
> Hey Claus,
> 
>> It is working now. I use your loop except the map.
>>
>> <f:for each="{entry.company.contact}" as="contact">
>>     <f:form.textbox property="company.contact.0.forename" id="forename"
>> value="{contact.forename}"/>
>>     <br />
>>
>>    <f:form.textbox property="company.contact.0.lastname" id="lastname"
>> value="{contact.lastname}"/>
>>    <br />
>> </f:for>
> 
> well, this of course only works as long as you only allow one person to
> be added/edited.

Yes, of course. I'll keep going to think about how to solve it. For the
first it is OK. I guess from the design point of view it is certainly
that a company can have more than one contact person and therefore I
prepared it to have it later available if required.


> 
>> As I mention before contact.uid is uninitialized until persisting,
>> therefore I don't need the condition.
> 
> You will need it once it's persisted and you allow editing of existing
> records. Otherwise you'll always delete the old person and create a new
> one, getting a new UID. Just keep that in mind.
> 

Oh, right. I didn't care about it, thanks for remember me that.

Regards Claus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMqHNiAAoJELsIv+audObfmvkIAIqhHrmoPIVP9EZLL5R+eKlZ
/H4x1KI0v4a/uI/bmoPbjIqxlC3pJSG/0Nszr3GG4so0ion56bhoDscRQR2sNWOY
EYu7f5HDU9v6yPWNKdOXcDwn3UE+EkiSDLz5eXnzBfk9wAiYEh5iCz1MYUWiPp5r
RMrgTjp2vuoxdjovn5TNv5jE0zAoNaoGSbDCBx7U6ePvVKHYHfEYcDxorZAHWe+W
xzzf9lzbh/NI45MIGfU8yi+T1vGfNPY4zDdDqDOBhtgXBGABObAsokTLtALa2qGK
cPXjmvQo1/HuFj2TMrkrISFn91Zbfn9m1A1H8XmvGmsmBjgKN9UB2mPstLwdKks=
=TGFo
-----END PGP SIGNATURE-----


More information about the TYPO3-project-typo3v4mvc mailing list