dresende/node-orm — Issue #33: Association bug for .hasOne method
Author: yagudaev
Created: 2012-02-04 04:33:15+00:00
State: open

There seems to be a strange bug with the hasOne() method. Looking at the code we found this:

```javascript
instance.prototype["set" + camelCaseAssociation] = function (instance, cb) {
var instance = this;
....

lines 75-76

If I read this correct you are shadowing the instance variable passed as a parameter with a local variable, rendering access to the instance param impossible.