1
0
mirror of synced 2024-12-15 07:36:03 +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);
}
}