1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/tests_old/models/ValidatorTest_ClientModel.php
2008-02-08 17:41:01 +00:00

12 lines
643 B
PHP

<?php
class ValidatorTest_ClientModel extends Doctrine_Record {
public static function initMetadata($class) {
$class->setColumn('id', 'integer', 4, array('notnull' => true,
'primary' => true,
'autoincrement' => true,
'unsigned' => true));
$class->setColumn('short_name', 'string', 32, array('notnull' => true, 'notblank', 'unique' => true));
$class->hasMany("ValidatorTest_AddressModel", array('local' => 'client_id', 'foreign' => 'address_id', 'refClass' => 'ValidatorTest_ClientToAddressModel'));
}
}