Skip to content

Errors when using inheritance mapping #7

@Firehed

Description

@Firehed

Docs: https://www.doctrine-project.org/projects/doctrine-orm/en/2.7/reference/inheritance-mapping.html

Summary: when an entity uses @MappedSuperclass behavior (which allows private @Column properties on a parent class), InMemoryEntityManager barfs because it fails to find the private property on the parent class.

1) SomeTestCase
UnexpectedValueException: Property "nodeId" does not exist on class "Node_ff7ce30521e3"

.../vendor/firehed/mocktrine/src/InMemoryRepository.php:194
.../vendor/firehed/mocktrine/src/InMemoryRepository.php:134
.../vendor/firehed/mocktrine/src/InMemoryRepository.php:146
...more stack trace

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions