Commit 15e28efd authored by zYne's avatar zYne

--no commit message

--no commit message
parent ca775fdc
......@@ -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');
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment