[Flow] How to build One-To-Many Forms

Axel Wüstemann awu at qbus.de
Mon Nov 4 20:42:08 CET 2013


Am 04.11.2013 18:38, schrieb mario chiari:
> hi,
>
> On Mon, 2013-11-04 at 16:43 +0100, Axel Wüstemann wrote:
>>> ...
>
> http://pastebin.com/UW1HwReu line 58, try deposits.{i.index}.deposit
> (note: deposit>>s<<) within you form select
> maybe ...
This works, Mario, thank you. I dropes the as="deposit" in the <f:for> loop.

But ther remains some problems:

1. there is no reference to the perent object "depositInspection" within 
the "deposits" children. This property is NULL

2. I have initially 5 deposits and fill only 3, so 2 remains empty. Will 
this generate empty rows

3. Unfortunately I'm action on Oracle, and there seems an Doctrene bug 
with generating a seuquence (auto increment id in Oracle). I figured 
out, if I write an SQL Insert statemant, all works fine. But now - how 
to do so with an One to many relation?

By the way - the initializeCreateAction seems not to be nessecary.

Thank your for you're great assistance! Grazie mille.


Axel



More information about the Flow mailing list