I have an issue with FOSRestBundle.
I am trying to use the parent option in my routing and I get the following error
[InvalidArgumentException] Every parent controller must have
get{SINGULAR}Action($id)
method where {SINGULAR} is a singular form of associated object
Here is my routing.yml
organisation :
type: rest
resource: MyProject\RestBundle\Controller\OrganisationRestController
name_prefix: api_
users :
type: rest
resource: MyProject\RestBundle\Controller\UsersRestController
name_prefix: api_
parent: organisation
I have implemented the ClassRessourceInterface in my controllers.
Why do I get the above error?