1. is Winracku.combrack intended to be many-to-one or one-to-many ?
2. Given w1, w2:
w1 = Winracku()
w2 = Winracku()
w1.combrack = w2
which one are you deleting first, and what is the desired behavior as a result?
On Apr 9, 2013, at 8:29 AM, Werner werner.bru...@sfr.fr wrote:
On
On 09/04/2013 14:29, Werner wrote:
...
Wineracku.combrack = sao.relationship('Wineracku',
remote_side=[Wineracku.id],
cascade=all, delete,
delete-orphan,
single_parent=True)
Wineracku.combrack =
Hi Michael,
Didn't see this one before my last post.
On 09/04/2013 16:19, Michael Bayer wrote:
1. is Winracku.combrack intended to be many-to-one or one-to-many ?
One to many, in other words just to make sure that I don't mess up
terminology, w1 can have many children but the children only
On Apr 9, 2013, at 10:27 AM, Werner werner.bru...@sfr.fr wrote:
Hi Michael,
Didn't see this one before my last post.
On 09/04/2013 16:19, Michael Bayer wrote:
1. is Winracku.combrack intended to be many-to-one or one-to-many ?
One to many, in other words just to make sure that I don't
Hi,
I have an ORM class:
class Wineracku(DeclarativeBase, mix.StandardColumnMixin):
__tablename__ = u'wineracku'
description = sa.Column(sa.Unicode(length=30))
shortdesc = sa.Column(sa.Unicode(length=10))
# only used with single bottle type units
maxcol =
Hi,
Found it in the doc, the Adjacency List Relationship is what I wanted.
http://docs.sqlalchemy.org/en/latest/orm/relationships.html#adjacency-list-relationships
Werner
--
You received this message because you are subscribed to the Google Groups
sqlalchemy group.
To unsubscribe from this