Skip to content
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

Classes connected by has_many relation have to be in the same class #28

Open
GoogleCodeExporter opened this issue May 28, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Put classes TPerson and TLaptop (from the example project) to different 
units and change mapping file accordingly.
2. Call TSession.LoadRelations with an instance of TPerson object.

What is the expected output? What do you see instead?
I get an exception with message "Unknown type TLaptop" which shouldn't happen.

What version of the product are you using? 
Latest as of February 11th, 2012.

Please provide any additional information below.

The problem seems to be in TSession.LoadHasManyRelationByPropertyName method, 
where _table is the mapping of parent class, but is used for finding child 
class type.

Same problem occurs with belongs to relation as well and by looking at the 
code, I would presume that it's the same for has one relation (but I haven't 
tested it yet).

Original issue reported on code.google.com by [email protected] on 11 Feb 2012 at 12:37

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 16 Aug 2012 at 8:51

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Is this problem still present?

Original comment by [email protected] on 1 Apr 2014 at 10:51

@GoogleCodeExporter
Copy link
Author

I have this problem to.

Original comment by [email protected] on 20 May 2014 at 7:08

@GoogleCodeExporter
Copy link
Author

How is this question ?

Original comment by [email protected] on 1 Sep 2014 at 2:39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant