Tag: belongsTo
-
Post Views: 17 1. There are 2 fields in the table: original_theme_id, theme_id, the value of the field original_theme_id is derived from the theme_id of another record in the table. as shown in Figure 1 2. Set a one-to-one reverse association in the model. The code is implemented as follows 3. Get the code implementation of the associated attribute, the…
-
Post Views: 25 1. The correlation of the model Theme is as follows 2. The correlation of the model ThemeInstallation is as follows 3. Error when obtaining the associated attribute: sqlstate[42S02]: base table or view not found: 1146 tableObject_wp.wp_theme_installationdoesn’tt exist . as shown in Figure 1 4. The table Theme_Installation does not exist in object_wp.wp_theme_installation, but actually exists in…
