add customer api

This commit is contained in:
2019-10-08 22:33:25 +02:00
committed by Roland Schneider
parent 9aee187d11
commit 1300bfc752
33 changed files with 1164 additions and 246 deletions

View File

@@ -65,4 +65,14 @@ class EventRegistration extends \yii\db\ActiveRecord
],
parent::behaviors());
}
public function getEvent(){
return $this->hasOne(Event::class,['id' => 'id_event']);
}
public function getCustomer(){
return $this->hasOne(Customer::class,['id' => 'id_customer']);
}
}