On Thu, May 3, 2012 at 2:00 PM, yoav glazner <[email protected]> wrote:

>
>> On Wed, May 2, 2012 at 9:38 AM, Gaurav Gupta <[email protected]>wrote:
>>
>>> Guys,
>>>
>>> I need help in figuring out some quirks in Elixir. I have a very simple
>>> schema (schema.py) with a simple ForeignKey relationship and a python
>>> module (model.py), where I create 2 databases from the same schema (see the
>>> code below). When I run model.py, I get the following error when it tries
>>> to create the second database:
>>> *Exception: 'Table2' resolves to several entities, you should use the
>>> full path (including the full module name) to that entity.*
>>>
>>> I am unsure why this error happens. It appears that the two database are
>>> sharing some state. What am I missing?
>>>
>>>
> try calling  cleanup_all
>
> http://elixir.ematia.de/trac/browser/elixir/tags/0.7.0/elixir/__init__.py#L78
>
>
>
cleanup_all() would resolve the issue (I had tried it already) but its not
the right fix. It would destroy all existing sessions to the db.



> also It seems wierd to me that you call setup_all before you connect the
> DB, but if it works...
>
>  I did not pay attention to it before, yup its wierd :). I moved it after
I create the engine in my code and I have the same problem.



> --
> 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.
>

-- 
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.

Reply via email to