From 6344fd34cb3e9746741fa8903017299ee33164de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Cobucci?= Date: Wed, 23 Nov 2016 19:20:47 +0100 Subject: [PATCH] Improving the documentation of enums as discriminators test @Ocramius was too eager to merge stuff Related to: https://github.com/doctrine/doctrine2/pull/6141 --- .../Tests/ORM/Functional/Ticket/GH6141Test.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/Doctrine/Tests/ORM/Functional/Ticket/GH6141Test.php b/tests/Doctrine/Tests/ORM/Functional/Ticket/GH6141Test.php index 3ca71928d..00ae936a4 100644 --- a/tests/Doctrine/Tests/ORM/Functional/Ticket/GH6141Test.php +++ b/tests/Doctrine/Tests/ORM/Functional/Ticket/GH6141Test.php @@ -24,6 +24,13 @@ class GH6141Test extends OrmFunctionalTestCase ); } + /** + * The intent of this test is to ensure that the ORM is capable + * of using objects as discriminators (which makes things a bit + * more dynamic as you can see on the mapping of `GH6141Person`) + * + * @group 6141 + */ public function testEnumDiscriminatorsShouldBeConvertedToString() { $boss = new GH6141Boss('John'); @@ -157,8 +164,8 @@ class GH6141People * @InheritanceType("JOINED") * @DiscriminatorColumn(name="discr", type="gh6141people") * @DiscriminatorMap({ - * "boss" = GH6141Boss::class, - * "employee" = GH6141Employee::class + * Doctrine\Tests\ORM\Functional\Ticket\GH6141People::BOSS = GH6141Boss::class, + * Doctrine\Tests\ORM\Functional\Ticket\GH6141People::EMPLOYEE = GH6141Employee::class * }) */ abstract class GH6141Person