Answer the question
In order to leave comments, you need to log in
What do double curly braces mean in yii2 migrations?
{{% users }} What does this mean? Why do you need curly brackets and the % sign
Answer the question
In order to leave comments, you need to log in
The curly braces are replaced with the table name highlight characters. For example, in mysql it is a ` symbol
, that is, {{user}} will go into the query as `user`
The percent sign is replaced by the table prefix if it was set in the database connection config.
For example,
'tablePrefix' => 'qwe_' is specified in the config,
then {{%user}} will get into the request as `qwe_user`
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question