Код: Выделить всё
"insolita/yii2-migration-generator": "dev-master"
Код: Выделить всё
"insolita/yii2-migration-generator": "dev-master"
Код: Выделить всё
->andFilterWhere(['DAYOFWEEK(FROM_UNIXTIME(date))' => 1])
Код: Выделить всё
->andFilterWhere(['=', (new \yii\db\Expression('DAYOFWEEK(FROM_UNIXTIME(date))')), 1])
Код: Выделить всё
->andFilterWhere(['=', (new \yii\db\Expression('DAYOFWEEK(date)')), 1])
Код: Выделить всё
->andFilterWhere(['DAYOFWEEK(date)' => 1])
https://dev.mysql.com/doc/refman/5.5/en ... _dayofweekReturns the weekday index for date (1 = Sunday, 2 = Monday, …, 7 = Saturday). These index values correspond to the ODBC standard.
Код: Выделить всё
'components' => [
'urlManager' => [
'baseUrl' => '/admin',
],
Код: Выделить всё
float: right
Код: Выделить всё
$query->andHaving(['activestatus', 1]);
Код: Выделить всё
public function recentlys($price)
{
...
Код: Выделить всё
$recents = Sale::model()->recentlys($model->price);//или как называется модель
Код: Выделить всё
ORDER BY ABS($price - price)
LIMIT 4