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