This commit is contained in:
parent
ca775fdc99
commit
15e28efdb4
@ -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');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user