Skip to content

Child entities are not added to registry when using attributes🐛  #54

@makedo

Description

@makedo

No duplicates 🥲.

  • I have searched for a similar issue in our bug tracker and didn't find any solutions.

What happened?

Problem:
When using inheritance and mark parent and child classes as entities using attributes, \Cycle\Schema\Registry generator does not add children entities to Schema Registry.

How to reproduce:
You can reproduce it if you remove docblock comment for your annotation in tests. You can see an example here
https://github.com/makedo/annotated/tree/fail-test
I change 1 fixture by fully removing docblocks and keep only AttributeReader in tests

Proposed solution:
Remove check for docblock In Cycle\Annotated\Utils\EntityUtils::findParent

Version

annotated v3.1.0, orm v2.1.1, PHP 8.1

ORM Schema

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Released

Relationships

None yet

Development

No branches or pull requests

Issue actions