I'm trying to join my pages cfc to itself to show child pages:
<cfproperty
name="children"
fieldtype="one-to-many"
cfc="page"
linktable="ParentAndChild"
fkcolumn="parent"
inversejoinColumn="child"
mappedby="pageId"
ormtype="string"
lazy="true"
missingRowIgnored="true"
>
I am getting the following error:
could not retrieve collection size: [children#dev-home]
its mappedby pageid because the id column isn't used in parentandchild, its using its human readable id.
'dev-home' is the parents pageid.
The parentandchild table has two columns: 'parent' and 'child', these hold the page id's