File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed
Models/AbstractFetchEager Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1010
1111/**
1212 * @ORM\Entity()
13+ * @ORM\Table(name="abstract_fetch_eager_remote_control")
1314 * @ORM\InheritanceType("SINGLE_TABLE")
1415 * @ORM\DiscriminatorColumn(name="type", type="string")
1516 * @ORM\DiscriminatorMap({"mobile"="MobileRemoteControl"})
1617 */
17- abstract class AbstractRemoveControl
18+ abstract class AbstractRemoteControl
1819{
1920 /**
2021 * @ORM\Id
Original file line number Diff line number Diff line change 99/**
1010 * @ORM\Entity()
1111 */
12- class MobileRemoteControl extends AbstractRemoveControl
12+ class MobileRemoteControl extends AbstractRemoteControl
1313{
1414}
Original file line number Diff line number Diff line change 88
99/**
1010 * @ORM\Entity()
11+ * @ORM\Table(name="abstract_fetch_eager_user")
1112 */
1213class User
1314{
@@ -21,14 +22,14 @@ class User
2122 public $ id ;
2223
2324 /**
24- * @ORM\ManyToOne(targetEntity="AbstractRemoveControl ", inversedBy="users")
25+ * @ORM\ManyToOne(targetEntity="AbstractRemoteControl ", inversedBy="users")
2526 * @ORM\JoinColumn(nullable=false)
2627 *
27- * @var AbstractRemoveControl
28+ * @var AbstractRemoteControl
2829 */
2930 public $ remoteControl ;
3031
31- public function __construct (AbstractRemoveControl $ control )
32+ public function __construct (AbstractRemoteControl $ control )
3233 {
3334 $ this ->remoteControl = $ control ;
3435 }
Original file line number Diff line number Diff line change 44
55namespace Doctrine \Tests \ORM \Functional ;
66
7- use Doctrine \Tests \Models \AbstractFetchEager \AbstractRemoveControl ;
7+ use Doctrine \Tests \Models \AbstractFetchEager \AbstractRemoteControl ;
88use Doctrine \Tests \Models \AbstractFetchEager \MobileRemoteControl ;
99use Doctrine \Tests \Models \AbstractFetchEager \User ;
1010use Doctrine \Tests \OrmFunctionalTestCase ;
@@ -14,7 +14,7 @@ final class AbstractFetchEagerTest extends OrmFunctionalTestCase
1414 public function testWithAbstractFetchEager (): void
1515 {
1616 $ this ->createSchemaForModels (
17- AbstractRemoveControl ::class,
17+ AbstractRemoteControl ::class,
1818 User::class
1919 );
2020
You can’t perform that action at this time.
0 commit comments