is not
the right one.
Le mardi 24 mars 2015 14:23:00 UTC+1, Michael Bayer a écrit :
the “user” backref here is a relationship() like any other, just specify
Address.user as the target of the event.
Cyril Scetbon csce...@gmail.com javascript: wrote:
Hi,
Is there a way to add an event
Hi,
Is there a way to add an event listener on a backref ?
I have something like :
class User(Base):
__tablename__ = 'user'
id = Column(Integer, primary_key=True)
name = Column(String)
addresses = relationship(Address, backref=user)
class Address(Base):
__tablename__ =
Thank you Michael you perfectly answered the question ! I just removed the
custom primaryjoin condition and it works as expected
--
You received this message because you are subscribed to the Google Groups
sqlalchemy group.
To unsubscribe from this group and stop receiving emails from it, send
Hi,
After having
read http://docs.sqlalchemy.org/en/latest/orm/loading_relationships.html I
understand there is one case where SQL is not emitted and I was expecting
that my case was this one.
I use polymorphism to store different objects in the same table (only one
type displayed here) as