Lazy.php 763 Bytes
Newer Older
doctrine's avatar
doctrine committed
1 2 3
<?php
require_once("Batch.php");
/**
lsmith's avatar
lsmith committed
4
 * a collection of Doctrine_Record objects with lazy load strategy
doctrine's avatar
doctrine committed
5
 * (batch load strategy with batch size 1)
lsmith's avatar
lsmith committed
6 7 8 9 10 11 12 13
 * @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>
 */
lsmith's avatar
lsmith committed
14 15
class Doctrine_Collection_Lazy extends Doctrine_Collection_Batch
{
doctrine's avatar
doctrine committed
16 17
    /**
     * constructor
lsmith's avatar
lsmith committed
18
     * @param Doctrine_DQL_Parser $graph
doctrine's avatar
doctrine committed
19 20
     * @param string $key
     */
lsmith's avatar
lsmith committed
21 22
    public function __construct(Doctrine_Table $table)
    {
doctrine's avatar
doctrine committed
23 24 25 26
        parent::__construct($table);
        parent::setBatchSize(1);
    }
}