[eluser]abmcr[/eluser]
Hello... i apologize for my continuous requests/suggestions; if hope not to be too exaggerated :roll:
I have a strange error when in the example_form.yml of the last build, i insert the OneToMany field into the Filed set. My code is
At this moment, all work fine (a little bug with the alignment is fix with an edit as line 245 of plugins/relationalcontainer.php; the correct line is
Code:
</div><div style="clear:both"> </div>
), but if go back into the display view i get an error SQL
Code:
An Error Was Encountered
Error Number: 1054
Unknown column 'related_example' in 'field list'
SELECT `image_test`, `related_example`, `textbox_test`, `checkbox_test`, `date_test`, `password_test`, `radiogroup_test`, `sessiondata_test`, `textarea_test`, `time_test`, `dbdropdown_test`, `file_test`, `my_id` FROM (`example`) ORDER BY `my_id` desc
And in effect, the field related_example is not present into the table. But why this error only if i move the position of the field?
The codexforms/iterate function work wrong only for the position of the yml code?
Another little tip: i want to get the id of the record int the prepForDisplay routine of a controller... it is possible?