11 lines
406 B
PHP
11 lines
406 B
PHP
<?php
|
|
class ValidatorTest_Person extends Doctrine_Entity {
|
|
public static function initMetadata($class) {
|
|
$class->setColumn('identifier', 'integer', 4,
|
|
array('validators' => array('notblank', 'unique')));
|
|
$class->setColumn('is_football_player', 'boolean');
|
|
$class->hasOne('ValidatorTest_FootballPlayer',
|
|
array('local' => 'id', 'foreign' => 'person_id'));
|
|
}
|
|
}
|