1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
abstract class BaseBidon extends Doctrine_Record {
public function setTableDefinition() {
$this->setTableName('bidon');
$this->hasColumn('id', 'integer', 4, array(
'type' => 'integer',
'fixed' => 0,
'unsigned' => false,
'primary' => true,
'sequence' => 'bidon_id',
'length' => '4',
));
$this->hasColumn('cle', 'integer', 4, array(
'type' => 'integer',
'fixed' => 0,
'unsigned' => false,
'notnull' => false,
'primary' => false,
'length' => '4',
));
}
public function setUp()
{
parent::setUp();
$this->hasOne('Cle', array(
'local' => 'cle',
'foreign' => 'id'));
}
} |
Partager