Home > Blockchain >  Property "XXX" in file "YYY" was already declared, but it must be declared only
Property "XXX" in file "YYY" was already declared, but it must be declared only

Time:10-19

I'm getting this problem while trying to import an existing table using mapping in Symfony:

enter image description here

I don't know how to solve it, because the Entity "NlCategories" doesn't exist in my project, as you can see in the next picture:

enter image description here

EDIT: Results of ncatEmissionsGroupLink search:

enter image description here

Results of NlCategories search:

enter image description here

EDIT 2: The problem was finally solved starting a new project and copy-pasting all the code I had in the original one. I still don't know why this happened, but if someone has a similar error as mine, keep in mind you can "solve" starting from zero and copy-pasting everything (and, of course, re-doing all composer require you were using).

CodePudding user response:

Finally, I solved this by creating a new project and copy-pasting all the code I had in the original project. Then reinstalling all need components using composer require.
More information is in the second edit of the question.

  • Related