1
0
mirror of synced 2024-12-14 07:06:04 +03:00

Fix docblocks ObjectHydratorTest

This commit is contained in:
Benjamin Eberlei 2011-11-01 17:43:23 +01:00
parent afb8d63fcb
commit d532de9da3

View File

@ -16,7 +16,7 @@ require_once __DIR__ . '/../../TestInit.php';
class ObjectHydratorTest extends HydrationTestCase
{
/**
* Select u.id, u.name from \Doctrine\Tests\Models\CMS\CmsUser u
* SELECT PARTIAL u.{id,name} FROM \Doctrine\Tests\Models\CMS\CmsUser u
*/
public function testSimpleEntityQuery()
{
@ -54,6 +54,7 @@ class ObjectHydratorTest extends HydrationTestCase
/**
* @group DDC-644
* SELECT PARTIAL u.{id,name} FROM \Doctrine\Tests\Models\CMS\CmsUser u
*/
public function testSkipUnknownColumns()
{
@ -80,7 +81,8 @@ class ObjectHydratorTest extends HydrationTestCase
}
/**
* Select u.id, u.name from \Doctrine\Tests\Models\CMS\CmsUser u
* SELECT PARTIAL u.{id,name}, PARTIAL a.{id,topic}
* FROM \Doctrine\Tests\Models\CMS\CmsUser u, \Doctrine\Tests\Models\CMS\CmsArticle a
*/
public function testSimpleMultipleRootEntityQuery()
{
@ -132,7 +134,7 @@ class ObjectHydratorTest extends HydrationTestCase
}
/**
* Select p from \Doctrine\Tests\Models\ECommerce\ECommerceProduct p
* SELECT p FROM \Doctrine\Tests\Models\ECommerce\ECommerceProduct p
*/
public function testCreatesProxyForLazyLoadingWithForeignKeys()
{
@ -177,11 +179,7 @@ class ObjectHydratorTest extends HydrationTestCase
}
/**
* select u.id, u.status, p.phonenumber, upper(u.name) nameUpper from User u
* join u.phonenumbers p
* =
* select u.id, u.status, p.phonenumber, upper(u.name) as u__0 from USERS u
* INNER JOIN PHONENUMBERS p ON u.id = p.user_id
* select u, p, upper(u.name) nameUpper from User u JOIN u.phonenumbers p
*/
public function testMixedQueryFetchJoin()
{
@ -251,11 +249,8 @@ class ObjectHydratorTest extends HydrationTestCase
}
/**
* select u.id, u.status, count(p.phonenumber) numPhones from User u
* join u.phonenumbers p group by u.status, u.id
* =
* select u.id, u.status, count(p.phonenumber) as p__0 from USERS u
* INNER JOIN PHONENUMBERS p ON u.id = p.user_id group by u.id, u.status
* select u, count(p.phonenumber) numPhones from User u
* join u.phonenumbers p group by u.id
*/
public function testMixedQueryNormalJoin()
{
@ -298,11 +293,8 @@ class ObjectHydratorTest extends HydrationTestCase
}
/**
* select u.id, u.status, upper(u.name) nameUpper from User u index by u.id
* select u, p, upper(u.name) nameUpper from User u index by u.id
* join u.phonenumbers p indexby p.phonenumber
* =
* select u.id, u.status, upper(u.name) as p__0 from USERS u
* INNER JOIN PHONENUMBERS p ON u.id = p.user_id
*/
public function testMixedQueryFetchJoinCustomIndex()
{
@ -373,15 +365,10 @@ class ObjectHydratorTest extends HydrationTestCase
}
/**
* select u.id, u.status, p.phonenumber, upper(u.name) nameUpper, a.id, a.topic
* select u, p, upper(u.name) nameUpper, a
* from User u
* join u.phonenumbers p
* join u.articles a
* =
* select u.id, u.status, p.phonenumber, upper(u.name) as u__0, a.id, a.topic
* from USERS u
* inner join PHONENUMBERS p ON u.id = p.user_id
* inner join ARTICLES a ON u.id = a.user_id
*/
public function testMixedQueryMultipleFetchJoin()
{
@ -484,19 +471,12 @@ class ObjectHydratorTest extends HydrationTestCase
}
/**
* select u.id, u.status, p.phonenumber, upper(u.name) nameUpper, a.id, a.topic,
* select u, p, upper(u.name) nameUpper, a, c
* c.id, c.topic
* from User u
* join u.phonenumbers p
* join u.articles a
* left join a.comments c
* =
* select u.id, u.status, p.phonenumber, upper(u.name) as u__0, a.id, a.topic,
* c.id, c.topic
* from USERS u
* inner join PHONENUMBERS p ON u.id = p.user_id
* inner join ARTICLES a ON u.id = a.user_id
* left outer join COMMENTS c ON a.id = c.article_id
*/
public function testMixedQueryMultipleDeepMixedFetchJoin()
{