我有一个小任务,但我不知道我的行为中的错误在哪里。我正在使用Yii2 2.0.10和PostgreSQL,我需要更新一些ActiveRecord模型并更改模型中的状态。我写了这段代码:
>Exception 'yii\base\InvalidParamException' with message 'Operator ' ID IN (1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245)' requires two operands.'
但是当我尝试执行查询时出现此错误:
static unsigned long
sdbm(str)
unsigned char *str;
{
unsigned long hash = 0;
int c;
while (c = *str++)
hash = c + (hash << 6) + (hash << 16) - hash;
return hash;
}
我做错了什么?
答案 0 :(得分:0)
你可以更轻松地做到:
ClassNotFoundException in BootstrapIconExtension.php line 51:
Attempted to load class "Twig_Filter_Method" from the global namespace.
Did you forget a "use" statement?