Closed jakubboucek closed 6 years ago
When I make invalid configuration of Entity, exception Nextras\Orm\InvalidStateException say:
Nextras\Orm\InvalidStateException
Entity Nextras\Orm\Entity\Entity does not have defined any primary key.
instead of:
Entity App\Orm\IdentityRepository does not have defined any primary key.
https://github.com/nextras/orm/blob/28f5a41022dddadf799ad5a52222ac34e541d6d0/src/Entity/Reflection/MetadataParser.php#L450
Oh no, my fault :-( Sorry.
I accidently add invalid alias at usestatement, that escaled to this weird behavior.
use
When I make invalid configuration of Entity, exception
Nextras\Orm\InvalidStateException
say:instead of:
Issue info
Source
https://github.com/nextras/orm/blob/28f5a41022dddadf799ad5a52222ac34e541d6d0/src/Entity/Reflection/MetadataParser.php#L450