S
S
Sergey2015-04-13 16:26:18
Yii
Sergey, 2015-04-13 16:26:18

Namespaces conflict in yii2 - sphinx\Query and db\Query, how to get around this?

In one model, I need to use both sphinx searches and do some db queries.
But these namespaces conflict:

use yii\sphinx\Query;
use yii\db\Query;

And how to get around this without creating a kostylegovnokod?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2015-04-13
@butteff

use yii\sphinx\Query as SphinxQuery;
use yii\db\Query as DbQuery;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question