1
0
mirror of synced 2024-12-14 07:06:04 +03:00
doctrine2/manual/codes/Basic Components - Query - Fetching strategies.php
2006-07-23 21:08:06 +00:00

26 lines
487 B
PHP

<?php
// select all users and load the data directly (Immediate fetching strategy)
$coll = $session->query("FROM User-I");
// or
$coll = $session->query("FROM User-IMMEDIATE");
// select all users and load the data in batches
$coll = $session->query("FROM User-B");
// or
$coll = $session->query("FROM User-BATCH");
// select all user and use lazy fetching
$coll = $session->query("FROM User-L");
// or
$coll = $session->query("FROM User-LAZY");
?>