• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

ORM lazy loading not working

New Here ,
Mar 14, 2013 Mar 14, 2013

Copy link to clipboard

Copied

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?

Views

640

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 12, 2013 Sep 12, 2013

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation