/** * @return \yii\db\ActiveQuery */ public function getCm() { return $this->hasOne(Cm::className(), ['id' => 'cm_id']); }