无法获取对 HasOne 属性 内部远程方法的引用

Unable to get reference to HasOne Property Inside Remote Method

我有 ExtentedUser 个模型,它与两个模型有两个 hasOne 关系

driver and customer (both having a belongTo realtionship back to the ExtentedUser) and they are also the Extended from User base model).

after the use of

 ExtentedUser.afterRemote('create', function(context, user, next){

         //in here i am unable to get
        // reference to driver or customer model
      //eg user.driver or user.customer
}

糟糕的是我做错的是我使用模型名称作为 属性。

   user.driver /where driver is modelName

但我应该使用关系名称 这是

   user.drivers /where drivers is RelationShipName