I'm actually facing an issue onto Symfony 4.1.6, where i'm trying to build 2 CRUD for 2 different classes.
Let's say :
- Jobs - Categories
Jobs tables has an id_category, so it's a ManyToOne relationnal field to the Categories Table.
I've generated theses entities.
Just after this (and migrations of course), i'm doing a php bin/console make:crud, to build the CRUD of theses classes. Everything works for now.
The problem is when i create a new category, from the new auto-generated form, i'm facing an error when i go back on jobs and try to add one :
Catchable Fatal Error: Object of class App\Entity\Category could not be converted to string
I precise that until i create a category from the form, everything seems to work well...
What am i missing here ? Is it a bug ?
Thanks a lot in advance for your help,
Have a productive night,
Brawcks