Код: Выделить всё
Model::updateAll($attributes, $condition)
Код: Выделить всё
Model::updateAll($attributes, $condition)
Код: Выделить всё
use Yii;
Код: Выделить всё
\Yii::$app->response->cookies; // впереди \
Код: Выделить всё
$comment->user->username;
Код: Выделить всё
A::find()->joinWith('b.c')->all()
Код: Выделить всё
public function rules() {
return [
[['email'], 'required'],
[['name'], 'required', 'on' => [self::SCENARIO_DEFAULT]],
['name', 'string'],
['email', 'email'],
];
}
вместо этого:Alex_N писал(а): ↑2018.12.17, 20:49 В поисковой моделе:Код: Выделить всё
[['responsible_id'], 'integer'],
Код: Выделить всё
[['responsible_id'], 'string'],
Код: Выделить всё
$unionQuery = (new \yii\db\Query())
->from(['subquery' => $query1->union($query2))
->where(['like','subquery.costInfo', $q])->asArray()->all();