Bug Report
Summary
If you call setData and prepare more than once then collection element names wont get wrapped.
You want : ['collection'][0]['something']
You get: ['something']
Current behavior
prepare runs only once
How to reproduce
- You fetch the data from the other source(eg post)
- $form->setData($data);
- $form->prepare();
- $form->isValid()
- $form->getData()
- You need to call setData again
- $form->setData($data)
- $form->prepare();
Expected behavior
setData should set the isPrepared flag false.
Bug Report
Summary
If you call setData and prepare more than once then collection element names wont get wrapped.
You want : ['collection'][0]['something']
You get: ['something']
Current behavior
prepare runs only once
How to reproduce
Expected behavior
setData should set the isPrepared flag false.