Thanks, I added that test class such that it was getting defined after setup all... then I was hitting an Attribute error, because using_mapper_options was expecting a list and not a string. using_mapper_options(primary_key=['id']) did the trick.
Looks like it's working. Sweet. Thanks for the quick response. -Chris On Jan 22, 11:55 pm, Gaetan de Menten <[email protected]> wrote: <snip> > > p.s. I'm using mysql as the db, and code: > > > class TestView(Entity): > > using_options(tablename="vw_test", autoload=True) > > using_mapper_options(primary_key='id') > > Did you call setup_all() after your entities have all been defined? > > -- > Gaëtan de Mentenhttp://openhex.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SQLElixir" 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/sqlelixir?hl=en -~----------~----~----~----~------~----~------~--~---
