Commit 324a0707 authored by phuson's avatar phuson

To clarify for Ticket #534

parent e7f64afb
...@@ -153,7 +153,7 @@ class User extends Doctrine_Record ...@@ -153,7 +153,7 @@ class User extends Doctrine_Record
In the following example we fetch all the Users with the fields name and password loaded directly. Then we lazy-load a huge field called description for one user. In the following example we fetch all the Users with the fields name and password loaded directly. Then we lazy-load a huge field called description for one user.
<code type="php"> <code type="php">
$users = Doctrine_Query::create()->select('u.name, u.password')->from('User u'); $users = Doctrine_Query::create()->select('u.name, u.password')->from('User u')->execute();
// the following lazy-loads the description fields and executes one additional database query // the following lazy-loads the description fields and executes one additional database query
$users[0]->description; $users[0]->description;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment