2017-07-13 11 views
2

が私のハンドラでイェソドデータベースの永続レコードアクセスの下

UserSetting 
    source ArticleSourceId 
    minimumShouldMatch Int 
    articleLength Int 
    userId UserId 
    deriving Show 

modelsファイルであり、私は、エンティティ値vVal上の例sourceには使用しないことを見出しました。

(v:_) <- selectList [UserSettingUserId ==. asUd] [LimitTo 1] 
    let vVal = source $ entityVal v 
    let vId = entityKey v 

エラーメッセージは、これは動作しますVariable not in scope: source :: UserSetting -> Integer

答えて

3

です:

let vVal = userSettingSource $ entityVal v