1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/models/ValidatorTest_Person.php
2008-01-23 08:04:54 +00:00

12 lines
379 B
PHP

<?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() {
$this->hasOne('ValidatorTest_FootballPlayer', 'ValidatorTest_FootballPlayer.person_id');
}
}