As in the Elixir tutorial, is it necessary to specify both sides of the 
"parent/child" relationship?

     class Movie(Entity):
         director = ManyToOne('Director')

     class Director(Entity):
         movies = OneToMany('Movie')

What happens if you leave off the 'OneToMany' line?

(This is confusing as when doing this sort of stuff in SQL, I normally just 
put the F.K. spec in the child and have it point to the id of the parent. With 
the parent none the wiser.)

Thanks,
Michael

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" 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/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to