Wheels.AssociationNotFound
An association named newsSites could not be found on the news model.
Suggested action
Setup an association in the config method of the models/News.cfc file and name it newsSites. You can use the belongsTo, hasOne or hasMany method to set it up.
Error location
Line 14 in controllers\News.cfc
12: }
13:
14: news = model("news").findOne(where="permalink = '"¶ms.key&"'", include="newsSites", returnAs="query");
15: faqcategories = model("faqcategories").findAll(order="categoryid");
16:
Tag context
Error thrown on line 558 in wheels\model\sql.cfm
- called from line 189 in wheels\model\sql.cfm
- called from line 170 in wheels\model\sql.cfm
- called from line 188 in wheels\model\read.cfm
- called from line 118 in wheels\model\read.cfm
- called from line 352 in wheels\model\read.cfm
- called from line 14 in controllers\News.cfc
- called from line 157 in wheels\global\cfml.cfm
- called from line 125 in wheels\controller\processing.cfm
- called from line 91 in wheels\controller\processing.cfm
- called from line 184 in wheels\dispatch\functions.cfm
- called from line 5 in wheels\index.cfm
- called from line 2 in rewrite.cfm
- called from line 5 in wheels\events\onrequest.cfm