You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the orm.reconstructor decorator on the events attribute for the Aggregate model to init and load it only on memory, according to the example on the Constructors and Object Initialization section of SQLAlchemy docs:
fromsqlalchemyimportormclassMyMappedClass:
def__init__(self, data):
self.data=data# we need stuff on all instances, but not in the database.self.stuff= []
@orm.reconstructordefinit_on_load(self):
self.stuff= []
The text was updated successfully, but these errors were encountered:
Use the
orm.reconstructor
decorator on theevents
attribute for theAggregate
model to init and load it only on memory, according to the example on the Constructors and Object Initialization section of SQLAlchemy docs:The text was updated successfully, but these errors were encountered: