look this link ...

http://www.blogs.uni-osnabrueck.de/rotapken/2009/03/13/symfony-merge-embedded-form/

On Aug 14, 6:42 am, juaninf <juan...@gmail.com> wrote:
> gestor:
>     id: { type: INTEGER, primaryKey: true, required: true,
> autoIncrement: true }
>     nombre: { type: VARCHAR, size: '45' }
>     dni: { type: VARCHAR, size: '45' }
>
>   pedido:
>     id: { type: INTEGER, primaryKey: true, required: true,
> autoIncrement: true }
>     hola: { type: VARCHAR, size: '45' }
>
>   gestor_registra_gasto:
>     gestor_id: { type: INTEGER, primaryKey: true, required: true,
> foreignTable: gestor, foreignReference: id, onDelete: cascade,
> onUpdate: cascade }
>     pedido_id: { type: INTEGER, primaryKey: true, required: true,
> foreignTable: pedido, foreignReference: id, onDelete: cascade,
> onUpdate: cascade }
>     concepto: { type: VARCHAR, size: '45', required: true }
>     importe: { type: VARCHAR, size: '45', required: true }
>
> Good
> I am this model
>
> gestor:
>     id: { type: INTEGER, primaryKey: true, required: true,
> autoIncrement: true }
>     nombre: { type: VARCHAR, size: '45' }
>     dni: { type: VARCHAR, size: '45' }
>
>   pedido:
>     id: { type: INTEGER, primaryKey: true, required: true,
> autoIncrement: true }
>     hola: { type: VARCHAR, size: '45' }
>
>   gestor_registra_gasto:
>     gestor_id: { type: INTEGER, primaryKey: true, required: true,
> foreignTable: gestor, foreignReference: id, onDelete: cascade,
> onUpdate: cascade }
>     pedido_id: { type: INTEGER, primaryKey: true, required: true,
> foreignTable: pedido, foreignReference: id, onDelete: cascade,
> onUpdate: cascade }
>     concepto: { type: VARCHAR, size: '45', required: true }
>     importe: { type: VARCHAR, size: '45', required: true }
>
> I created  3 modules
> Gestor -- gestor
> Gasto ---gestor_registra_gasto
> Pedido ---pedido
>
> I want make is that in the gasto form, I can embebed the two forms
> (Gestor and Pedido),
> but only the id's(this is easy i guess...read plus please),but so to
> select  a id, for example
> de Gestor i  see the other Gestor fields, but whitout edit this
> fields, only to see, and when
> i to select pedido this same form
> help me please
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to