1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/manual/docs/Configuration - Setting default fetchmode.php
2007-04-13 21:49:11 +00:00

13 lines
367 B
PHP

<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>