Changeset 4577
- Timestamp:
- 06/28/08 05:19:04 (6 months ago)
- Location:
- branches/0.11/manual/docs
- Files:
-
- 2 modified
-
en.txt (modified) (2 diffs)
-
en/working-with-objects.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.11/manual/docs/en.txt
r4159 r4577 4 4 + Relations 5 5 + Schema Files 6 + Utilities7 6 + Working with objects 8 7 + Component overview … … 11 10 + Data fixtures 12 11 + DQL (Doctrine Query Language) 12 + Utilities 13 13 + Native SQL 14 14 + Transactions -
branches/0.11/manual/docs/en/working-with-objects.txt
r4552 r4577 235 235 </code> 236 236 237 Retrieve Users and the Groups they belong to 238 239 <code type="php"> 240 $q = Doctrine_Query::create() 241 ->from('User u') 242 ->leftJoin('u.Groups g'); 243 $users = $q->fetchArray(); 244 245 foreach ($users[0]['Groups'] as $group) { 246 echo $group['name']; 247 } 248 </code> 249 237 250 Simple WHERE with one parameter value 238 251