【发布时间】:2016-10-04 13:33:40
【问题描述】:
我想在 yii2 的多表中进行搜索。这个动作怎么做?
<?php
namespace app\models;
use Yii;
use yii\db\Query;
use app\models\Article;
use app\models\Certificates;
use app\models\News;
use app\models\Pages;
use app\models\Projects;
use app\models\NewsSearch;
我想在多表中搜索。该表与Together没有任何关系
我想像这样在 yii2 中编写查询:
select * from news , article , projects where (any column for this tables ) like %search%
【问题讨论】:
标签: php yii2 searchqueryset