1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/tests_old/models/ValidatorTest_Person.php

11 lines
406 B
PHP
Raw Normal View History

<?php
class ValidatorTest_Person extends Doctrine_Record {
public static function initMetadata($class) {
2008-02-24 01:04:39 +03:00
$class->setColumn('identifier', 'integer', 4,
array('validators' => array('notblank', 'unique')));
$class->setColumn('is_football_player', 'boolean');
2008-02-24 01:04:39 +03:00
$class->hasOne('ValidatorTest_FootballPlayer',
array('local' => 'id', 'foreign' => 'person_id'));
}
}