255], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'user_id' => 'Пользователь', 'phone' => 'Телефон', 'ip' => 'IP', 'ua' => 'Ua', 'result' => 'Result', 'tm' => 'Время поиска', 'refresh' => 'Refresh', 'site_id' => 'Сайт', 'source_id' => 'Источник' ]; } public function getResults() { return $this->hasMany(RequestResult::className(), ['request_id' => 'id'])->select(['request_id', 'type_id', 'index', 'cache_id']); } public function getUser() { return $this->hasOne(User::className(), ['id' => 'user_id']); } public function getSite() { return $this->hasOne(Site::className(), ['id' => 'site_id']); } }