In my project there is a table with a double primary key, like this:

schema:
  matricula_x_criterio_evaluacion:
    _attributes: { phpName: MatriculaXCriterioEvaluacion }
    matricula_id: { type: INTEGER, size: '10', primaryKey: true,
required: true, foreignTable: matricula, foreignReference:
matricula_id, onDelete: CASCADE, onUpdate: CASCADE }
    criterio_evaluacion_id: { type: INTEGER, size: '10', primaryKey:
true, required: true, foreignTable: criterio_evaluacion,
foreignReference: criterio_evaluacion_id, onDelete: CASCADE, onUpdate:
CASCADE }
    grado_consecucion: { type: CHAR, required: false }
    nota: { type: VARCHAR, size: '3', required: false }
    auto_unidad_didactica_id: { type: INTEGER, size: '10', required:
true, foreignTable: unidad_didactica, foreignReference:
unidad_didactica_id, onDelete: RESTRICT, onUpdate: RESTRICT }
    _indexes: { criterio_evaluacion_id: [criterio_evaluacion_id],
matricula_id: [matricula_id], auto_unidad_didactica_id:
[auto_unidad_didactica_id] }




into class MatriculaXCriterioEvaluacionForm extends
BaseMatriculaXCriterioEvaluacionForm

I want to retreive these ( into function updateObject() ):

  $idmatri = $this->getValue('matricula_id');
  $idcrite = $this->getValue('criterio_evaluacion_id');


I can see that $idmatri contains a right value for a record but
$idcrite is an unalterable incorrect value

Is this a bug? what am i doing wrong? Thanks

(Symfony 1.2. + Propel)

--~--~---------~--~----~------------~-------~--~----~
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