I have the query:
$popular = self::find()
    ->from(self::tableName() . ' as t')
    ->with('user');
When I try to print sql:
$popular->createCommand()->rawSql
It gives me:
SELECT * FROM "themes" "t"
So can I get full raw query with "join":
SELECT * FROM "themes" "t" LEFT JOIN "users" u ON u.user_id = t.author_id
 
     
     
     
    