Skip to content

Page Associations #47

@cbishop

Description

@cbishop

The page associations for Author and PageClass are wrong. Here's the corrected version for Page.cfc

    <cfset belongsTo(name='pageLayout', class="layout", foreignKey="layoutID")>
    <cfset hasMany('PageParts')>
    <cfset belongsTo('PageClass')>
<cfset belongsTo(name="author", class="user", foreignKey="createdByID")>

Then, in PageClass.cfc:
<cfset hasMany("Pages")>

And, in User.cfc:
<cfset hasMany("Pages")>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions