2007-09-02 14:24:49 +00:00
|
|
|
<?php
|
|
|
|
class ValidatorTest_Person extends Doctrine_Record {
|
2008-02-03 21:29:57 +00:00
|
|
|
public static function initMetadata($class) {
|
|
|
|
$class->setColumn('identifier', 'integer', 4, array('notblank', 'unique'));
|
|
|
|
$class->setColumn('is_football_player', 'boolean');
|
|
|
|
$class->hasOne('ValidatorTest_FootballPlayer', array('local' => 'id', 'foreign' => 'person_id'));
|
2007-09-02 14:24:49 +00:00
|
|
|
}
|
|
|
|
}
|