'PropertyLoader' object has no attribute 'prop'
Issue #899
resolved
File "...lib/sqlalchemy/orm/properties.py", line 304, in compare
return ~sql.exists([1](1), self.prop.mapper.mapped_table, self.prop.primaryjoin)
AttributeError: 'PropertyLoader' object has no attribute 'prop'
Shouldn't this just be self.mapper.mapped_table
and self.primaryjoin
?
Comments (4)
-
Account Deleted -
repo owner - changed milestone to 0.4.2
yea, bug. whats the use case, calling
with_parent(None)
? the short test scripts here are essential to fix the bug since it can't be fixed without a confirming test case added to the unit tests. -
repo owner - changed status to resolved
90d38c7407e532462059d2e98cb8d3bab31f7a36. the fix given is correct but is now on just a one-to-many comparison; many-to-one uses the "optimized" compare of just the foreign key against NULL.
-
repo owner - removed milestone
Removing milestone: 0.4.2 (automated comment)
- Log in to comment
Actually, for that matter, the line needs to be "return ~sql.exists(1, self.primaryjoin)" for it to work.