相关疑难解决方法(0)

学说 - 或者在哪里?

我有以下查询:

$query = Doctrine_Query::create()
                ->from('Member m')
                    ->where("m.type='1'")
                        ->andWhere("m.name LIKE '%$term%'")
                        ->orWhere("m.surname LIKE '%$term%'")
                        ->orWhere("m.company LIKE '%$term%'")
                        ->orderBy('id DESC');
Run Code Online (Sandbox Code Playgroud)

但它不像我想的那样工作 - 它忽略了type列.

我需要的是结果集m.type=1此查询中的其他字段和其他一些字段LIKE 'something'.

php doctrine

14
推荐指数
2
解决办法
3万
查看次数

标签 统计

doctrine ×1

php ×1