Skip to content

Commit

Permalink
Fixed deprecated 'class' argument in Page model associations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Russ Johnson committed Dec 5, 2011
1 parent cd1e12d commit 09c2993
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/Page.cfc
Expand Up @@ -2,9 +2,9 @@


<cffunction name="init"> <cffunction name="init">
<cfset hasMany('PageParts')> <cfset hasMany('PageParts')>
<cfset belongsTo(name='pageLayout', class="layout", foreignKey="layoutID")> <cfset belongsTo(name='pageLayout', modelName="layout", foreignKey="layoutID")>
<cfset belongsTo('PageClass')> <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 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")> <cfset validatesLengthOf(properties="title,keywords,description", message="You have exceeded the maximun length", allowBlank="true", maximum="255")>
Expand Down

0 comments on commit 09c2993

Please sign in to comment.