1
0
mirror of synced 2025-03-05 04:13:20 +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 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() public function testSimpleEntityQuery()
{ {
@ -54,6 +54,7 @@ class ObjectHydratorTest extends HydrationTestCase
/** /**
* @group DDC-644 * @group DDC-644
* SELECT PARTIAL u.{id,name} FROM \Doctrine\Tests\Models\CMS\CmsUser u
*/ */
public function testSkipUnknownColumns() 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() 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() 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 * select u, p, upper(u.name) nameUpper from User u JOIN u.phonenumbers p
* 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
*/ */
public function testMixedQueryFetchJoin() public function testMixedQueryFetchJoin()
{ {
@ -251,11 +249,8 @@ class ObjectHydratorTest extends HydrationTestCase
} }
/** /**
* select u.id, u.status, count(p.phonenumber) numPhones from User u * select u, count(p.phonenumber) numPhones from User u
* join u.phonenumbers p group by u.status, u.id * join u.phonenumbers p group by 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
*/ */
public function testMixedQueryNormalJoin() 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 * 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() 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 * from User u
* join u.phonenumbers p * join u.phonenumbers p
* join u.articles a * 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() 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 * c.id, c.topic
* from User u * from User u
* join u.phonenumbers p * join u.phonenumbers p
* join u.articles a * join u.articles a
* left join a.comments c * 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() public function testMixedQueryMultipleDeepMixedFetchJoin()
{ {