Answer the question
In order to leave comments, you need to log in
Symfony, easyadmin why records are not deleted?
Good afternoon. I continue to master Symfony in general EasyAdmin and Doctrine in particular. There is a table OrgNews with organization news. This table has an AuthorID field, they are related like this:
...
namespace App\Entity;
...
/**
* @ORM\OneToOne(targetEntity=OrgUser::class)
*/
private $AuthorID;
...
Answer the question
In order to leave comments, you need to log in
You're getting an error because of the fk delimiter, you need to set up a cascading delete
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question