> -----Original Message-----
> From: sqlalchemy@googlegroups.com [mailto:sqlalch...@googlegroups.com]
> On Behalf Of chaouche yacine
> Sent: 02 September 2010 11:02
> To: sqlalchemy googlegroups
> Subject: [sqlalchemy] update a relation from its id
> 
> Hello group,
> 
> Suppose A has a ManyToOne relation to B (A is a child of B). I want
> to perform something like :
> a.b_id = b.id
> assert a.b == b
> 
> How do I do this in sqlalchemy ?
> 

Hi,

This is answered in the FAQ:

<http://www.sqlalchemy.org/trac/wiki/FAQ#Isetthefoo_idattributeonmyinsta
nceto7butthefooattributeisstillNone-shouldntithaveloadedFoowithid7>

Hope that helps,

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to