[TYPO3-mvc] One form but two DB-tables have to be filled

Stefan Frömken firma at sfroemken.de
Mon Dec 19 10:43:40 CET 2011


Am 19.12.2011 10:12, schrieb Tim Schoch | GSTALTIG:
> Id do that in a custom repsoitory. You probably need to write own statements, thus loosing some default functionallity like findBy*,
> but you dont have to worry about your tables outside the repository.
>
> Tim

Hi Tim,

I think I must not use my own statements. My fields for offer are 
rendered like this:

<input type="text" value="" name="newOffer[date]" />

I just search for a solution to create a tt_address record automatically 
when using fields like this:

<input type="text" value="" name="newOffer[sender][company]" />

For now extbase makes my angree with messages like this:

#1: PHP Catchable Fatal Error: Argument 1 passed to 
Tx_Sfoffer_Domain_Model_Offer::setSender() must be an instance of 
Tx_Sfoffer_Domain_Model_TtAddress, array given, called in 
root\typo3\sysext\extbase\Classes\Reflection\ObjectAccess.php on line 
190 and defined in

I don't understand this message because newOffer is an array, too. But 
here are no error messages.

Stefan


More information about the TYPO3-project-typo3v4mvc mailing list