/** * @return \yii\db\ActiveQuery */ public function getLogs() { return $this->hasMany(ApplyLog::className(), ['apply_id' => 'id']); }