/** * @return \yii\db\ActiveQuery */ public function getTickets() { return $this->hasMany(Ticket::className(), ['IDcompany' => 'IDcompany']); }