We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

EE 3.2.1 Add-on Model is not using the provided table name

Development and Programming

Expertees's avatar
Expertees
3 posts
9 years ago
Expertees's avatar Expertees

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.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.