I would like to use two Relations for EAV Containers.
Having a client and for this client I would like to store Settings and Metadata. Settings are stored in Strings and Metadata in Textareas. Therefore I used two different tables.
When I try to store Metadata they store themselves in the table of the Settings.
How can I tell the code in which model I should store the EAV data? Or is it possible to decide per key if I would like to store it in a varchar or text field and have two different fields for my values in the database table?
If I do that I'll get an error: Fuel\Core\Database_Exception [ 23000 ]: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'key' cannot be null with query: "INSERT INTO `meta` (`client_id`, `key`, `value`, `created_at`, `updated_at`) VALUES ('76990864', null, null, 1390425676, 1390425676)"
How can I set the correctvalues for $key and $value in this scenario?