2007-09-02 18:24:49 +04:00
|
|
|
<?php
|
|
|
|
class ValidatorTest_Person extends Doctrine_Record {
|
|
|
|
public function setTableDefinition() {
|
|
|
|
$this->hasColumn('identifier', 'integer', 4, array('notblank', 'unique'));
|
|
|
|
$this->hasColumn('is_football_player', 'boolean');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setUp() {
|
2008-01-23 11:04:54 +03:00
|
|
|
$this->hasOne('ValidatorTest_FootballPlayer', 'ValidatorTest_FootballPlayer.person_id');
|
2007-09-02 18:24:49 +04:00
|
|
|
}
|
|
|
|
}
|