I am trying to embed collection of Tag
forms to Service
form, according to this tutorial. Tag
and Service
entities have many-
Maybe the problem is that Symfony can't access that property?
If you look at where that exception is thrown (writeProperty method in the PropertyAccessor class) it says it can be thrown:
If the property does not exist or is not public.
In the tutorial you mentioned it has property $tags, and method addTag. I'm just guessing here, but maybe there's a convention where it tries to call a method names add($singularForm)
and this is failing for you because the property is tagList
and the method is addTag
.
I'm not 100% sure, but you could try debugging by setting a stop point in that Symfony method to see why it's being thrown.