{"action":"opened","issue":{"url":"https://api.github.com/repos/dresende/node-orm2/issues/708","repository_url":"https://api.github.com/repos/dresende/node-orm2","labels_url":"https://api.github.com/repos/dresende/node-orm2/issues/708/labels{/name}","comments_url":"https://api.github.com/repos/dresende/node-orm2/issues/708/comments","events_url":"https://api.github.com/repos/dresende/node-orm2/issues/708/events","html_url":"https://github.com/dresende/node-orm2/issues/708","id":136329986,"number":708,"title":"TypeError: other.save is not a function","user":{"login":"ChineseLs","id":15081153,"avatar_url":"https://avatars.githubusercontent.com/u/15081153?v=3","gravatar_id":"","url":"https://api.github.com/users/ChineseLs","html_url":"https://github.com/ChineseLs","followers_url":"https://api.github.com/users/ChineseLs/followers","following_url":"https://api.github.com/users/ChineseLs/following{/other_user}","gists_url":"https://api.github.com/users/ChineseLs/gists{/gist_id}","starred_url":"https://api.github.com/users/ChineseLs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChineseLs/subscriptions","organizations_url":"https://api.github.com/users/ChineseLs/orgs","repos_url":"https://api.github.com/users/ChineseLs/repos","events_url":"https://api.github.com/users/ChineseLs/events{/privacy}","received_events_url":"https://api.github.com/users/ChineseLs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-25T09:28:46Z","updated_at":"2016-02-25T09:28:46Z","closed_at":null,"body":"I get this error when i use hasone like this:\r\n`ti_attach.hasOne('news' ,db.models.ti_news , {field :'root_id' ,reverse:'covers' ,autoFetch:true});`\r\nand then \r\n`req.models.ti_news.create(params ,function(err ,data){\r\n            if(err) return next(err);\r\n            data.setCovers(attaches,  function(err){\r\n                if(err) return next(err);\r\n                res.json({err :0});\r\n            })\r\n        })`\r\n\r\nfinally ,i get these problem \r\n`TypeError: other.save is not a function\r\n    at saveNext (F:\\开发\\nodejs\\CarsClub\\node_modules\\node-orm\\lib\\Association\r\nOne.js:230:13)\r\n    at F:\\开发\\nodejs\\CarsClub\\node_modules\\node-orm\\lib\\Associations\\One.js:2\r\n:13\r\n    at F:\\开发\\nodejs\\CarsClub\\node_modules\\node-orm\\lib\\Instance.js:631:12\r\n    at Instance.saveInstanceExtra (F:\\开发\\nodejs\\CarsClub\\node_modules\\node-o\r\n\\lib\\Instance.js:353:19)\r\n    at finish (F:\\开发\\nodejs\\CarsClub\\node_modules\\node-orm\\lib\\Instance.js:2\r\n:5)\r\n    at F:\\开发\\nodejs\\CarsClub\\node_modules\\node-orm\\lib\\Instance.js:252:8\r\n    at Instance.saveAssociations (F:\\开发\\nodejs\\CarsClub\\node_modules\\node-or\r\nlib\\Instance.js:348:11)\r\n    at next (F:\\开发\\nodejs\\CarsClub\\node_modules\\node-orm\\lib\\Instance.js:245\r\n)\r\n    at Instance.savePersisted (F:\\开发\\nodejs\\CarsClub\\node_modules\\node-orm\\l\r\n\\Instance.js:260:4)\r\n    at F:\\开发\\nodejs\\CarsClub\\node_modules\\node-orm\\lib\\Instance.js:140:13`\r\n"}}