tobjects function raises exception in new branch

Created by: siebenkopf

It seems that there is a bug in the implementation of the tobjects function in the new classes_instead_of_pydict branch. Here is a minimal example:

import xbob.db.scface db = xbob.db.scface.Database() db.tobjects()

InvalidRequestError: Could not find a FROM clause to join from. Tried joining to <class 'xbob.db.scface.models.Subworld'>, but got: Can't find any foreign key relationships between ...

Note that the db.objects() function works as expected, so I think this is a real bug and not a mistake of mine.

I didn't try to fix it yet, and I nastily assigned this bug to laurentes.