public function getSelectFields() { return $this->hasMany(FFields::className(), ['id_category' => 'id'])->joinWith('typeLink')->where(["s_type.name" => "select"])->orderBy('sort, name'); }
public function getTypeField() { return $this->hasOne(FFields::className(), ['id' => 'id_field']); }