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