2006-04-13 20:37:28 +00:00
|
|
|
<?php
|
|
|
|
require_once(Doctrine::getPath().DIRECTORY_SEPARATOR."Collection.class.php");
|
|
|
|
/**
|
|
|
|
* a collection of Doctrine_Record objects with lazy load strategy
|
|
|
|
* (batch load strategy with batch size 1)
|
|
|
|
*/
|
|
|
|
class Doctrine_Collection_Lazy extends Doctrine_Collection_Batch {
|
|
|
|
/**
|
|
|
|
* constructor
|
|
|
|
* @param Doctrine_DQL_Parser $graph
|
|
|
|
* @param string $key
|
|
|
|
*/
|
2006-04-19 16:01:36 +00:00
|
|
|
public function __construct(Doctrine_Table $table) {
|
|
|
|
parent::__construct($table);
|
2006-04-13 20:37:28 +00:00
|
|
|
parent::setBatchSize(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|