Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to create multiple recordsets for each selected checkbox
    primarykey
    data
    text
    <p>i have the following schema and i want to create a Form with Symfony 1.4 and Doctrine where the user can choose an Magazine from a selectbox and then click several checkboxes, where each checkbox is one issue. </p> <p>In pseudo markup it should look like this:</p> <p>[select]Magazine[/select]</p> <p>[checkbox]Issue 1[checkbox]</p> <p>[checkbox]Issue 2[checkbox]</p> <p>[checkbox]Issue 3[checkbox]</p> <p>[checkbox]Issue 4[checkbox]</p> <p>[checkbox]Issue 5[checkbox]</p> <p>If the form is saved it should create one recordset for each checkbox selected. The advertisement ID is passed to the form via the url.</p> <p>I tried several approaches to achieve this, but i stuck on this for several weeks now and hope someone here can help me.</p> <p>In the real project i need a collection of 25 of the described forms, but this won't be a problem if i would only get this base form working.</p> <p>Should i create a Advertisement form and embed the Planing form into it? I allways tried it direct with the Planing form.</p> <p>Any suggestions, hint oder help is much appreciated. And sorry for my poor english.</p> <pre><code>Advertisement: columns: title: { type: string(100), notnull: true } Issue: columns: magazine_id: { type: integer, notnull: true } number: { type: string(10), notnull: true } relations: Magazine: local: magazine_id foreign: id foreignAlias: Issues type: one foreignType: many Magazine: columns: title: { type: string(100) } Planing: columns: advertisement_id: { type: integer, notnull: true } magazine_id: { type: integer, notnull: true } issue_id: { type: integer, notnull: true } relations: Issue: local: issue_id foreign: id foreignAlias: Planings type: one foreignType: many Advertisement: local: advertisement_id foreign: id foreignAlias: Planings type: one foreignType: many Magazine: local: magazine_id foreign: id foreignAlias: Planings type: one foreignType: many </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload