But it does not work with exception message:
Entit
Beware, this error can also be raised when using 'by_reference' => false, in your form type with relations that are not ManyToMany. An unfortunate copy/paste put me in this situation.
'by_reference' => false,
ManyToMany