add registrations to customer gui
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace customerapi\models\registrations;
|
||||
|
||||
|
||||
use common\models\EventRegistration;
|
||||
use customerapi\models\available\EventAvailable;
|
||||
|
||||
class EventRegistrationAvailable extends EventRegistration
|
||||
{
|
||||
|
||||
function fields()
|
||||
{
|
||||
|
||||
$fields = [
|
||||
"id" => "id",
|
||||
"created_at" => "created_at",
|
||||
"updated_at" => "updated_at",
|
||||
];
|
||||
$fields['event'] = 'event';
|
||||
return $fields;
|
||||
}
|
||||
|
||||
public function getEventClass()
|
||||
{
|
||||
return EventAvailable::class;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user