-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong belongsTo behavior when using with postgresql #57
Comments
This error may happen when User is not defined correctly before calling BTW, model names should start with upper case letter. On Sat, Apr 7, 2012 at 10:15 AM, laoshanlung <
Cheers, |
Yes, I have just figured it out. I define models in separated files, which cause errors when models are related to each other. I have moved the relationship definition to a different file and call that file after all models are defined. It works now. |
I have this schema definition
Then I created some domains and add them to a particular user. I have checked the database and everything is ok.
Then, I do
However if I do something like this
I got this error
I am using postgresql 9.1 on Ubuntu 11.10.
The text was updated successfully, but these errors were encountered: