Normally we are using App\Entity namespace and folder in Symfony and the maker command can easily detect that.
But when i'm using a subfolder such as App\Entity\Product, it lose the auto detect/auto complete from the command (i think it is fine? Not sure though). And it is broken when i try to link a relation property using FQCN.
Example, linking a OneToOne relation using FQCN will lead to error:
Compile Error: Cannot declare class App\Entity\Product\Product, because the name is already in use
Normally we are using
App\Entity
namespace and folder in Symfony and the maker command can easily detect that.But when i'm using a subfolder such as
App\Entity\Product
, it lose the auto detect/auto complete from the command (i think it is fine? Not sure though). And it is broken when i try to link a relation property using FQCN.Example, linking a OneToOne relation using FQCN will lead to error:
Compile Error: Cannot declare class App\Entity\Product\Product, because the name is already in use