/** * @return $this */ public function getFields() { return $this->hasMany(Field::className(), ['document_id' => 'id'])->orderBy('option_id, id'); }