1 Reply Latest reply on Sep 12, 2013 7:34 AM by Sgozzapolli

    ORM lazy loading not working

    aaadobeee

      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?