Foreign key constraint sql error from entries/saveEntry when adding entry
I think the problem is this:

&lt;option value="v.id"&gt;{{v.title}}&lt;/option&gt;


Try changing it to:

&lt;option value="{{ v.id }}"&gt;{{v.title}}&lt;/option&gt;