dotkernel / api

DotKernel's PSR-7 REST style API built around the Mezzio API skeleton.
https://docs.dotkernel.org/api-documentation/
MIT License
26 stars 4 forks source link

invalid schema #293

Closed arhimede closed 1 week ago

arhimede commented 1 week ago

php bin/doctrine orm:validate-schema

returns:

PHP Fatal error: Cannot declare class Api\User\Entity\UserAvatar, because the name is already in use in /var/www/vhosts/api.dotkernel.net/httpdocs/src/User/src/Entity/UserAvatar.php on line 17

alexmerlin commented 1 week ago

It seems to be working fine.

php bin/doctrine orm:validate-schema
Mapping
-------

[OK] The mapping files are correct.

Database
--------

[OK] The database schema is in sync with the mapping files.

Did you try clearing Doctrine cache?

sudo rm -rf data/cache/doctrine/ data/cache/DoctrineEntityProxy/
arhimede commented 1 week ago

online on api.dotkernel.net is still the error clean cache or no cache

arhimede commented 1 week ago

PHP Fatal error: Cannot declare class Api\User\Entity\UserRole, because the name is already in use in /var/www/vhosts/api.dotkernel.net/httpdocs/src/User/src/Entity/Api/User/Entity/UserRole.php on line 8