Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
systems:yii2:modules [2018/04/06 17:01]
smayr [References]
systems:yii2:modules [2018/04/18 09:56] (current)
smayr [Using Custom Database]
Line 263: Line 263:
     {     {
         return "{{%item_product}}";  // formatted to allow table prefix (where % goes)         return "{{%item_product}}";  // formatted to allow table prefix (where % goes)
 +        
 +        // NOTE: To query the raw table name, use the following:
 +        //   echo Yii::$app->db->schema->getRawTableName(app\models\ItemProduct::tableName());
 +        // Displays as follows (assuming 'mod_' table prefix):
 +        //   mod_item_product
     }     }