1
0
mirror of synced 2024-12-14 23:26:04 +03:00
doctrine2/lib/Doctrine/Collection/Lazy.php

27 lines
763 B
PHP
Raw Normal View History

2006-05-30 12:59:08 +04:00
<?php
require_once("Batch.php");
/**
2006-12-29 17:01:31 +03:00
* a collection of Doctrine_Record objects with lazy load strategy
2006-05-30 12:59:08 +04:00
* (batch load strategy with batch size 1)
2006-12-29 17:01:31 +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-12-29 17:40:47 +03:00
class Doctrine_Collection_Lazy extends Doctrine_Collection_Batch
{
2006-05-30 12:59:08 +04:00
/**
* constructor
2006-12-29 17:01:31 +03:00
* @param Doctrine_DQL_Parser $graph
2006-05-30 12:59:08 +04:00
* @param string $key
*/
2006-12-29 17:40:47 +03:00
public function __construct(Doctrine_Table $table)
{
2006-05-30 12:59:08 +04:00
parent::__construct($table);
parent::setBatchSize(1);
}
}