You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So my question is pretty simple I think and yet I don't seem to understand what's going on. I have an question model and an answer model and the question model has hasMany('answers') and the answer model has a belongsTo('question). The question model has a nestedProperties(associations="answers", sortProperty="position", allowDelete=true);. When I create my form for creating a new question I am including a partial #includePartial(variables.question.answers)#. Then problem is when the partial does its job it generates a field with this long lumber in it: 2147483647
Then when I submit and save it adds the new question fine but it adds the answer with this number as its id, which it should be making a new answer and auto assigning a id. I left out several other fields for simplicity.
Anything you all can fill me in on would be great, thanks in advance.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi all,
So my question is pretty simple I think and yet I don't seem to understand what's going on. I have an question model and an answer model and the question model has
hasMany('answers')and the answer model has abelongsTo('question). The question model has anestedProperties(associations="answers", sortProperty="position", allowDelete=true);. When I create my form for creating a new question I am including a partial #includePartial(variables.question.answers)#. Then problem is when the partial does its job it generates a field with this long lumber in it: 2147483647<textarea class="form-control" data-parsley-required="true" id="question-answers-2147483647-title" name="question[answers][2147483647][title]" placeholder="Answer" style="height:50px"></textarea>Then when I submit and save it adds the new question fine but it adds the answer with this number as its id, which it should be making a new answer and auto assigning a id. I left out several other fields for simplicity.
Anything you all can fill me in on would be great, thanks in advance.
All reactions