1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/tests_old/models/ValidatorTest_Person.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'));
}
}