dresende / node-orm2

Object Relational Mapping
http://github.com/dresende/node-orm2
MIT License
3.07k stars 379 forks source link

Key field with mapsTo breaks the cache #580

Closed stueynz closed 9 years ago

stueynz commented 9 years ago

When key field has mapsTo - we need to rename from database fields to property names before checking the cache.

So we're just moving one line of code - and adding a special test-case to demonstrate the bug.

dxg commented 9 years ago

Thanks!

dxg commented 9 years ago

Published as part of v2.1.23