1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/Doctrine/Collection/Lazy.php

19 lines
483 B
PHP
Raw Normal View History

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)
*/
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);
}
}
?>