1
0
mirror of synced 2024-12-15 15:46:02 +03:00
doctrine2/models/ValidatorTest_ClientModel.php

16 lines
665 B
PHP
Raw Normal View History

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