'PropertyLoader' object has no attribute 'prop'

Issue #899 resolved
Former user created an issue
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)

  1. Former user Account Deleted

    Actually, for that matter, the line needs to be "return ~sql.exists(1, self.primaryjoin)" for it to work.

  2. Mike Bayer 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.

  3. Log in to comment