59 lines
1.8 KiB
PHP
59 lines
1.8 KiB
PHP
<?php namespace App\Repositories\Summit;
|
|
/**
|
|
* Copyright 2021 OpenStack Foundation
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
**/
|
|
use App\Models\Foundation\Summit\ExtraQuestions\SummitSelectionPlanExtraQuestionType;
|
|
use App\Models\Foundation\Summit\Repositories\ISummitSelectionPlanExtraQuestionTypeRepository;
|
|
use App\Repositories\Main\DoctrineExtraQuestionTypeRepository;
|
|
use utils\DoctrineLeftJoinFilterMapping;
|
|
/**
|
|
* Class DoctrineSummitSelectionPlanExtraQuestionTypeRepository
|
|
* @package App\Repositories\Summit
|
|
*/
|
|
final class DoctrineSummitSelectionPlanExtraQuestionTypeRepository
|
|
extends DoctrineExtraQuestionTypeRepository
|
|
implements ISummitSelectionPlanExtraQuestionTypeRepository
|
|
{
|
|
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
protected function getFilterMappings()
|
|
{
|
|
return array_merge(parent::getFilterMappings() , [
|
|
'selection_plan_id' => new DoctrineLeftJoinFilterMapping
|
|
(
|
|
"e.selection_plan",
|
|
"s" ,
|
|
"s.id :operator :value"
|
|
)
|
|
]);
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
protected function getOrderMappings()
|
|
{
|
|
return parent::getOrderMappings();
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @return string
|
|
*/
|
|
protected function getBaseEntity()
|
|
{
|
|
return SummitSelectionPlanExtraQuestionType::class;
|
|
}
|
|
} |