Every entity class must have an identifier/primary key.
docs.doctrine-project.org/en/latest/reference/basi...
28.1.1. Join-Columns with non-primary keys
It is not possible to use join columns pointing to non-primary keys.
doctrine-orm.readthedocs.org/projects/doctrine-orm...