Skip to main content
Participant
March 15, 2013
Question

ORM lazy loading not working

  • March 15, 2013
  • 1 reply
  • 678 views

Am I setting the property wrong?

teams.cfc

component peristent = true {

     ...

     property name = 'emails' fieldtype='one-to-many' cfc = 'emails' fkcolumn = 'team' type = 'array' singularname = 'email' inverse = 'true' fetchtype = 'lazy' lazy = 'extra';

     ...

}

emails.cfc

component persistent = true {

     ...

     property name = 'team' fieldtype = 'many-to-one' cfc = 'teams' lazy = true;

     ...

}

If I try entityload('teams'), all emails are loaded too - I do not want this. If I try it the other way around, entityload('emails'), the team is loaded. I only want it to show up when I explicity call it.

Whether it's set to true, extra, or false -- nothing changes. ormreload() is being used at the beginning of each request.

Any ideas?

This topic has been closed for replies.

1 reply

September 12, 2013

Got the same problem.... have you solved?