1
0
mirror of synced 2025-01-17 22:11:41 +03:00
This commit is contained in:
zYne 2007-06-10 19:04:53 +00:00
parent ca775fdc99
commit 15e28efdb4

View File

@ -114,6 +114,17 @@ class User extends Entity {
}
}
}
class SelfRefTest extends Doctrine_Record
{
public function setTableDefinition() {
$this->hasColumn('name', 'string', 50);
$this->hasColumn('created_by', 'integer');
}
public function setUp()
{
$this->hasOne('SelfRefTest as createdBy', array('local' => 'created_by'));
}
}
class Groupuser extends Doctrine_Record {
public function setTableDefinition() {
$this->hasColumn('added', 'integer');
@ -594,7 +605,7 @@ class NestTest extends Doctrine_Record
}
public function setUp()
{
$this->hasMany('NestTest as Parents', 'NestReference.parent_id');
$this->hasMany('NestTest as Parents', array('local' => 'child_id', 'foreign' => 'parent_id'));
$this->hasMany('NestTest as Children', 'NestReference.child_id');
}
}