Em Qui, 2008-02-21 às 11:51 -0800, Michael Bayer escreveu:
> Elixir is probably using a backref for the bi-directional
> relationship
yes, as I was testing I got the same.
but I think Elixir does not need to create the backref, in this case,
because I am creating the "person" column on goal, and this supplies the
relationship.
I think maybe Elixir is doing something unnecessary here.


class Goal(Entity):
    person = ManyToOne('Person')

class Person(Entity):
    goals = OneToMany('Goal')


and other... why it does not throw an exception by duplicated attribute,
since that the auto created backref should be exactly "person"?

att,

-- 
Alexandre da Silva
Analista de Sistemas - Bacharel em Sistemas de Informação (2003-2007)


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