8000 DDC-3467: Embeddable in inheritance currently must be protected · Issue #4277 · doctrine/orm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
DDC-3467: Embeddable in inheritance currently must be protected #4277
Closed
@doctrinebot

Description

@doctrinebot

Jira issue originally created by user nemo64:

I have a setup similar to this one :

/****
 * @ORM\Table()
 * @ORM\Entity(readOnly=true)
 * @ORM\InheritanceType("SINGLE_TABLE")
 ****/
abstract class Planet
{
    /** ... **/
    /****
     * @var Position
     * @ORM\Embedded(class="Position")
     */
    private $position;
}
/****
 * @ORM\Entity(readOnly=true)
 ****/
class Sun extends Planet
{
}

This causes the following error:

[ReflectionException]
Property Sun::$position does not exist

This can easily be fixed by making the embeddable protected, but if I didn't miss anything, a private embed should work too.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0