Configuration - Setting default fetchmode.php 367 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12

<code type="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);
    }
}
</code>