делаю связь в модели
Код: Выделить всё
public function getCatphotos()
{
return $this->hasOne(CatPhotos::className(), ['id' => 'cat_id']);
}
Код: Выделить всё
public function getCatphotos()
{
return $this->hasOne(CatPhotos::className(), ['id' => 'cat_id']);
}
Код: Выделить всё
* @property string $tmp_birthday
Код: Выделить всё
..... list_number, tmp_birthday','safe'],
Код: Выделить всё
SELECT * FROM (SELECT * FROM `fed_dir` WHERE `director_id`= 1 AND `regeon`='БЕЛГОРОД' AND `date` BETWEEN '2017-11-21' AND '2017-11-25' order by `date` DESC) as `table` group by `priziv`;