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