2007-09-02 18:24:49 +04:00
|
|
|
<?php
|
2008-05-14 01:20:34 +04:00
|
|
|
class MyUser extends Doctrine_Entity {
|
2007-09-02 18:24:49 +04:00
|
|
|
public function setTableDefinition() {
|
|
|
|
$this->hasColumn('name', 'string');
|
|
|
|
}
|
|
|
|
public function setUp() {
|
|
|
|
$this->hasMany('MyOneThing', 'MyOneThing.user_id');
|
|
|
|
$this->hasMany('MyOtherThing', 'MyOtherThing.user_id');
|
|
|
|
}
|
|
|
|
}
|