Skip to main content
7 events
when toggle format what by license comment
Mar 28, 2016 at 12:52 vote accept Michael Witwicki
Mar 28, 2016 at 12:51 comment added Michael Witwicki @carlcs you are totally right. I think I just had too many new concepts running around in my head at the same time trying to get familiar with Craft/Yii. I was able to accomplish what I wanted by simply joining in the elements_i18n table in modifylementsQuery. Thanks so much everyone.
Mar 27, 2016 at 23:21 comment added carlcs Yeah, the with parameter expects a field handle for eager loading the related element models. If I understand correctly, the OP doesn't use a relationship field to relate the elements and that parameter won't work in this case.
Mar 26, 2016 at 14:04 comment added Steve Holland I haven't tried eager loading myself yet, but from what I gleaned from the hangout is you eager load individual fields rather than the whole thing. So you need put the handle of the actual field (so your Uri field I'd guess), rather than just 'Entry'.
Mar 26, 2016 at 11:02 comment added Michael Witwicki Hey Steve, thanks so much for the response. I gave this a try but still can't seem to get it to work. I tried using $criteria->with = array('Entry'); as well as a few variations. I'll watch through the whole podcast soon and let you know if I find my answer in there.
Mar 26, 2016 at 9:36 history edited Steve Holland CC BY-SA 3.0
Added Craft Hangout link.
Mar 26, 2016 at 9:26 history answered Steve Holland CC BY-SA 3.0