views:

44

answers:

1
A: 

I believe you should not call mapper(). When you use declarative_base, you define the table, the class and the mapping at once, in a shorthand style.

I suggest you remove the call to mapper().

codeape
If I remove the mapper(), I get an UnmappedInstanceError: "UnmappedInstanceError: Class 'MappingTablesScenario.GUI_SCENARIO' is not mapped"
alex
Could you post some code that reproduces that error?
codeape