"SELECT task.id AS task__id, task.name AS task__name, task.parent_id AS task__parent_id, task2.id AS task2__id, task2.name AS task2__name, task2.parent_id AS task2__parent_id, task3.id AS task3__id, task3.name AS task3__name, task3.parent_id AS task3__parent_id FROM task LEFT JOIN task AS task2 ON task.id = task2.parent_id LEFT JOIN task AS task3 ON task2.id = task3.parent_id");
}
publicfunctiontestMultiComponentFetching2(){
...
...
@@ -54,35 +103,6 @@ class Doctrine_QueryTestCase extends Doctrine_UnitTestCase {
$this->assertEqual($count,count($this->dbh));
}
publicfunctiontestSelfReferencing(){
$category=newForum_Category();
$category->name="Root";
$category->Subcategory[0]->name="Sub 1";
$category->Subcategory[1]->name="Sub 2";
$category->Subcategory[0]->Subcategory[0]->name="Sub 1 Sub 1";
$category->Subcategory[0]->Subcategory[1]->name="Sub 1 Sub 2";
$category->Subcategory[1]->Subcategory[0]->name="Sub 2 Sub 1";
$category->Subcategory[1]->Subcategory[1]->name="Sub 2 Sub 2";