created a test case for DDC6558#6559
Conversation
| class DDC6558Staff extends DDC6558Employee | ||
| { | ||
| /** @Column(type="string") */ | ||
| public $phoneNumber; |
There was a problem hiding this comment.
Please remove all fields and properties that aren't required - if this test just needs the ID, let's only use that
|
|
||
| $persistedDeveloper = $this->_em->find(DDC6558Person::class, $developer->id); | ||
|
|
||
| $this->assertSame($persistedDeveloper->emailAddress, $developer->emailAddress); |
There was a problem hiding this comment.
self::assertInstanceOf(DDC6558Developer::class, $persistedDeveloper)
|
|
||
| $persistedDeveloper = $this->_em->find(DDC6558Employee::class, $developer->id); | ||
|
|
||
| $this->assertSame($persistedDeveloper->emailAddress, $developer->emailAddress); |
There was a problem hiding this comment.
self::assertInstanceOf(DDC6558Developer::class, $persistedDeveloper)
| * @Entity | ||
| * @InheritanceType("JOINED") | ||
| * @DiscriminatorColumn(name="discr", type="string") | ||
| * @DiscriminatorMap({"staff" = "DDC6558Staff", "developer" = "DDC6558Developer"}) |
There was a problem hiding this comment.
Only one inheritance map is allowed at top level - this usage is invalid and should probably be reported by the schema validation
| /** | ||
| * @Entity | ||
| * @InheritanceType("JOINED") | ||
| * @DiscriminatorColumn(name="discr", type="string") |
There was a problem hiding this comment.
Only one discriminator column is allowed at top level - this usage is invalid and should probably be reported by the schema validation
|
|
||
| /** | ||
| * @Entity | ||
| * @InheritanceType("JOINED") |
There was a problem hiding this comment.
Only one inheritance type definition is allowed at top level - this usage is invalid and should probably be reported by the schema validation
|
Closing as This is possibly a schema validation issue instead, as the tooling should report that a discriminator already exists. |
No description provided.