root/tags/0.10.1/models/Address.php

Revision 2353, 384 bytes (checked in by meus, 16 months ago)

moved all models to trunk/models. removed some old invalid testcases

Line 
1<?php
2class Address extends Doctrine_Record 
3{
4    public function setUp()
5    {
6        $this->hasMany('User', array('local' => 'address_id', 
7                                     'foreign' => 'user_id',
8                                     'refClass' => 'EntityAddress'));
9    }
10    public function setTableDefinition() {
11        $this->hasColumn('address', 'string', 200);
12    }
13}
Note: See TracBrowser for help on using the browser.