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

14 lines
384 B
PHP

<?php
class Address extends Doctrine_Record
{
public function setUp()
{
$this->hasMany('User', array('local' => 'address_id',
'foreign' => 'user_id',
'refClass' => 'EntityAddress'));
}
public function setTableDefinition() {
$this->hasColumn('address', 'string', 200);
}
}