On Apr 6, 2:52 am, svilen <[EMAIL PROTECTED]> wrote:
> what's your mappers? many2one/one2many relations etc?
>
> > I expected that I can create a parent-child link either from parent
> > to child (by appending to ranker.results) or from child to parent
> > (as above), but apparently the latter doesn't seem to work. Is this
> > the case or something else is wrong ?
>
> > George
It's one2many from Ranker to Result.
class Ranker(Entity):
has_many('results', of_kind='Result', cascade='all, delete-
orphan')
# (...) other fields
class Result(Entity):
belongs_to('ranker', of_kind='Ranker',
column_kwargs=dict(nullable=False))
# (...) other fields
George
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" 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/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---