如何在AfterCreate中访问请求对象 – waterline,sails

我有2个模型Newspaper.js和Reader.js

// Newspaper module.exports = { attributes: { title: { type: 'string' }, } }; 

和读者

 //Reader module.exports = { attributes: { // In case if the message is poll, it has options field which enumerates choices. title: { type: 'string' }, } }; 

而一个模型来存储它们之间的多对多关系

 module.exports = { attributes: { newsPaper: { model: 'newsPaper' }, reader: { model: 'reader' } } }; 

当有新的读者join多个订阅时,我的客户给我打电话,并在我的电话中获得新闻稿。

我有阅读器的afterValidate调用中的新闻文件列表,但没有创build读者的ID。 我得到了在AfterCreate中创build的新读取器的ID,但没有报纸。

如何创build一个阅读器的条目后创build一个关系?