| @@ 82-90 (lines=9) @@ | ||
| 79 | /** |
|
| 80 | * @group DDC-727 |
|
| 81 | */ |
|
| 82 | public function testAccessMetatadaForProxy() |
|
| 83 | { |
|
| 84 | $id = $this->createProduct(); |
|
| 85 | ||
| 86 | $entity = $this->em->getReference(ECommerceProduct::class , $id); |
|
| 87 | $class = $this->em->getClassMetadata(get_class($entity)); |
|
| 88 | ||
| 89 | self::assertEquals(ECommerceProduct::class, $class->getClassName()); |
|
| 90 | } |
|
| 91 | ||
| 92 | /** |
|
| 93 | * @group DDC-1033 |
|
| @@ 95-104 (lines=10) @@ | ||
| 92 | /** |
|
| 93 | * @group DDC-1033 |
|
| 94 | */ |
|
| 95 | public function testReferenceFind() |
|
| 96 | { |
|
| 97 | $id = $this->createProduct(); |
|
| 98 | ||
| 99 | $entity = $this->em->getReference(ECommerceProduct::class , $id); |
|
| 100 | $entity2 = $this->em->find(ECommerceProduct::class , $id); |
|
| 101 | ||
| 102 | self::assertSame($entity, $entity2); |
|
| 103 | self::assertEquals('Doctrine Cookbook', $entity2->getName()); |
|
| 104 | } |
|
| 105 | ||
| 106 | /** |
|
| 107 | * @group DDC-1033 |
|