Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed deprecated 'class' argument in Page model associations.

  • Loading branch information...
commit 09c29931853667dc832e512a93298c7a012b6ebb 1 parent cd1e12d
@russjohnson authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 models/Page.cfc
View
4 models/Page.cfc
@@ -2,9 +2,9 @@
<cffunction name="init">
<cfset hasMany('PageParts')>
- <cfset belongsTo(name='pageLayout', class="layout", foreignKey="layoutID")>
+ <cfset belongsTo(name='pageLayout', modelName="layout", foreignKey="layoutID")>
<cfset belongsTo('PageClass')>
- <cfset belongsTo(name="author", class="user", foreignKey="createdByID")>
+ <cfset belongsTo(name="author", modelName="user", foreignKey="createdByID")>
<cfset validatesPresenceOf(property="title" , message="Your page must have a title.")>
<cfset validatesLengthOf(properties="title,keywords,description", message="You have exceeded the maximun length", allowBlank="true", maximum="255")>
Please sign in to comment.
Something went wrong with that request. Please try again.