-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag '2.9.5' into 2.9.x-merge-up-into-2.10.x_Ryg07QLG
2.9.x bugfix release (patch) - Total issues resolved: **0** - Total pull requests resolved: **2** - Total contributors: **2** - [8930: Introduce 2.10 to readme](#8930) thanks to @SenseException - [8895: Implement __serialize() and __unserialize()](#8895) thanks to @derrabus
- Loading branch information
Showing
4 changed files
with
90 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Doctrine\Tests\ORM\Functional\Ticket; | ||
|
||
use Doctrine\Tests\OrmTestCase; | ||
|
||
use function assert; | ||
use function count; | ||
|
||
final class GH8914Test extends OrmTestCase | ||
{ | ||
/** | ||
* @group GH-8914 | ||
* @doesNotPerformAssertions | ||
*/ | ||
public function testDiscriminatorMapWithSeveralLevelsIsSupported(): void | ||
{ | ||
$entityManager = $this->getTestEntityManager(); | ||
$entityManager->getClassMetadata(GH8914Person::class); | ||
} | ||
} | ||
|
||
/** | ||
* @MappedSuperclass | ||
*/ | ||
abstract class GH8914BaseEntity | ||
{ | ||
} | ||
|
||
/** | ||
* @Entity | ||
* @InheritanceType("SINGLE_TABLE") | ||
* @DiscriminatorColumn(name="discr", type="string") | ||
* @DiscriminatorMap({"person" = "GH8914Person", "employee" = "GH8914Employee"}) | ||
*/ | ||
class GH8914Person extends GH8914BaseEntity | ||
{ | ||
/** | ||
* @var int | ||
* @Id | ||
* @Column(type="integer") | ||
* @GeneratedValue | ||
*/ | ||
public $id; | ||
} | ||
|
||
/** | ||
* @Entity | ||
*/ | ||
class GH8914Employee extends GH8914Person | ||
{ | ||
} |