On Sep 10, 10:51 pm, Alejandro Gómez
<[email protected]> wrote:
> I don't know why but embedRelation('AlumnoInterno') did not work.
> Maybe the Propel version?
>
> Symfony throws me "Call to undefined method
> AlumnoForm::embedRelation."
  Are you using Propel?
> In the other hand, I used getAlumnoInternos() wich "Gets an array of
> AlumnoInterno objects which contain a foreign key that references this
> object.". Since every Alumno object has only one AlumnoInterno object
> I take the first element of getAlumnoInternos().

  In Doctrine, you can set a relation to be one-to-one, thus
getAlumnoInterno() would give you one object, not an array. I don't
know if there's an equivalent in Propel. If there is one, that would
clean up the code a bit.

-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to