Eager Loading
The Problem
prc.posts = getInstance( "Post" ).limit( 25 ).get():<cfoutput>
<h1>Posts</h1>
<ul>
<cfloop array="#prc.posts#" item="post">
<li>#post.getTitle()# by #post.getAuthor().getUsername()#</li>
</cfloop>
</ul>
</cfoutput>The Solution
with
Nested Relationships
Constraining Eager Loaded Relationships
load
Last updated
Was this helpful?