Hi,
I’m trying to build a Add-on in ExpressionEngine 3 with the new Model service. I used the “Building your own model” guide to start making a model for the add-on settings that I want to store in a database.
I’ve added a table in my database (exp_dashboard_settings) and added the table name in my model.
protected static $_table_name = 'dashboard_settings';
When testing the add-on I keep getting the following error:
Unknown field dashboard_m_Settings.site_id
It looks like the model is ignoring the table name I’ve provided and assumes I’ve created a table that is named like
{namespace}_m_{Model}
Hopefully someone can explain what I’m doing wrong here.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.