[symfony-users] Re: propel relation m:n

2010-04-01 Thread Massimiliano Arione
OK, you must remove the id field from acudiente_estudiante model, and
add primaryKey: true to both estudiante and acudiente fields.

cheers
Massimiliano

On 1 Apr, 01:40, Julian Reyes julian.reyes.escri...@gmail.com wrote:
 Ok my real schema is:

 estudiante:
      id: ~
      nombres:                      { type: varchar(255), required: true }
      apellidos:                    { type: varchar(255), required: true }
      sexo:                         { type: integer, foreignTable: sexo,
 foreignReference: id, required: true, onDelete: CASCADE}
      fecha_nacimiento:             { type: timestamp,    required: true }
      lugar_nacimiento:             { type: varchar(255), required: true }
      tipo_documento:               { type: integer, foreignTable:
 tipo_documento, foreignReference: id, required: true, onDelete: CASCADE}
      numero_documento:             { type: varchar(30), required: true,
 index: unique }
      direccion_residencia:         { type: varchar(255), required: true }
      telefono:                     { type: varchar(15), required: true }

    acudiente_estudiante:
      id: ~
      estudiante:                   { type: integer, foreignTable:
 estudiante, foreignReference: id, required: true, onDelete: CASCADE,
 index: unique}
      acudiente:                    { type: integer, foreignTable:
 acudiente, foreignReference: id, required: true, onDelete: CASCADE,
 index: unique}

    acudiente:
      id: ~
      nombres:                      { type: varchar(255), required: true }
      apellidos:                    { type: varchar(255), required: true }
      tipo_documento:               { type: integer, foreignTable:
 tipo_documento, foreignReference: id, required: true, onDelete: CASCADE}
      numero_documento:             { type: varchar(30), required: true,
 index: unique }
      direccion_residencia:         { type: varchar(255), required: true }
      telefono:                     { type: varchar(15), required: true }

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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

To unsubscribe, reply using remove me as the subject.


[symfony-users] Re: propel relation m:n

2010-03-31 Thread Massimiliano Arione
Can you post your real schema? The one above is uncomplete.

On 30 Mar, 18:16, Julian Reyes julian.reyes.escri...@gmail.com
wrote:
 Hi

 i have a problem with this type or relations.

 in the jobeet tutorial explain the ORM make it relations many to many
 automaticly buts don't works. only saved student and guardian  but no
 student_guardian

 example schema:
      student: ~
      guardian: ~
      studiant_guardian: ~

 ok. i need put an embebed guardian form into the student and when i
 click on save the orm save it for me the three tables student, guardian
 and studentguardian.

 can help me someone with this problem.

 thanks in advance for helping.

 Julian Reyes

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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

To unsubscribe, reply using remove me as the subject.