1
0
mirror of synced 2025-01-18 14:31:40 +03:00
doctrine2/manual/codes/Basic Components - Query - Fetching strategies.php

26 lines
487 B
PHP
Raw Normal View History

2006-07-23 21:08:06 +00:00
<?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");
?>