1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/manual/codes/Configuration - Setting default fetchmode.php

12 lines
360 B
PHP
Raw Normal View History

2006-07-24 01:08:06 +04:00
<?php
// setting default fetchmode
// availible fetchmodes are Doctrine::FETCH_LAZY, Doctrine::FETCH_IMMEDIATE and Doctrine::FETCH_BATCH
// the default fetchmode is Doctrine::FETCH_LAZY
class Address extends Doctrine_Record {
public function setUp() {
$this->setAttribute(Doctrine::ATTR_FETCHMODE,Doctrine::FETCH_IMMEDIATE);
}
}
?>