mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DiscriminatorMap: getRepository of child class works only with all models in the main model folder #5602
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jasperem on GitHub (Jul 7, 2017).
Originally assigned to: @Ocramius on GitHub.
$entityManager()->getRepository(Child::class)->findAll()
works only with all classes in the main model folder.
works:
Model/Parent.php
Model/ChildA.php
Model/ChildB.php
not works:
Model/Parent.php
Model/Parent/ChildA.php
Model/Parent/ChildB.php
not works:
Model/Parent/Parent.php
Model/Parent/ChildA.php
Model/Parent/ChildB.php
@Ocramius commented on GitHub (Jul 7, 2017):
Closing as
incomplete: "works" or "doesn't work" require a test case ;-)