Hello. I'm developing a simple survey plugin and I'm having a hard time getting nested relations to work in forms.
Models I have:
Relationships I have:
Surveymay have many
Questionmay have many
I have only one controller, which is called
Surveys. All these models should be managed from this controller! After creating a
Survey and switching to
update context user sees a
Questions field of type
partial, which is rendered via
$this->relationRender('questions') and is located in
controllers/surveys/_questions.htm. Next user should be able to click "Add Question" button and create a new
Question form has a relation field called
choices, which should be rendered via partial too. I created this partial in
controller/surveys/_choices.htm. But now I get "Relation config doesn't have definition for 'choices'.". It seems like I have to add
choices relation to my relation_config.yaml of Surveys controller, like I did with
questions relation. But I didn't find any way to refer a nested relation from relation_config.yaml. I tried to call this relation
question[choices] and stuff but it didn't work. How can I define relation of relation in my relation_config.yaml or atleast force
Questions "sub form" to use
Questions controller instead of
Or does it mean I can't use
$this->relationRender for any relations that have futher
Same problem here! Nested field of type
partial is not working. Any one there to help please?
I have similar problem, but no solution. may be its not possible
Any of you guys able to get this working? I'm also struggling with this issue and nothing seems to work.
Would be nice if someone can help me out.
I think you should add
questions with backend relation config in
controller/surveys/_choices.htm should put in
Same problem, solution please???
1-8 of 8