2006-05-30 12:59:08 +04:00
|
|
|
<?php
|
|
|
|
require_once("Batch.php");
|
|
|
|
/**
|
|
|
|
* a collection of Doctrine_Record objects with lazy load strategy
|
|
|
|
* (batch load strategy with batch size 1)
|
2006-11-12 15:14:08 +03:00
|
|
|
* @package Doctrine
|
|
|
|
* @category Object Relational Mapping
|
|
|
|
* @link www.phpdoctrine.com
|
|
|
|
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
|
|
|
|
* @since 1.0
|
|
|
|
* @version $Revision$
|
|
|
|
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
|
|
|
|
*/
|
2006-05-30 12:59:08 +04:00
|
|
|
class Doctrine_Collection_Lazy extends Doctrine_Collection_Batch {
|
|
|
|
/**
|
|
|
|
* constructor
|
|
|
|
* @param Doctrine_DQL_Parser $graph
|
|
|
|
* @param string $key
|
|
|
|
*/
|
|
|
|
public function __construct(Doctrine_Table $table) {
|
|
|
|
parent::__construct($table);
|
|
|
|
parent::setBatchSize(1);
|
|
|
|
}
|
|
|
|
}
|
2006-09-04 02:46:30 +04:00
|
|
|
|