|
|
|
|
|
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Factory\ControllerFactory; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Factory\ControllerFactory; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\AssociationField; |
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\AssociationField; |
|
|
|
|
|
use Lc\CaracoleBundle\Container\Section\SectionContainer; |
|
|
use Lc\CaracoleBundle\Doctrine\Extension\FilterMerchantInterface; |
|
|
use Lc\CaracoleBundle\Doctrine\Extension\FilterMerchantInterface; |
|
|
use Lc\CaracoleBundle\Doctrine\Extension\FilterSectionInterface; |
|
|
use Lc\CaracoleBundle\Doctrine\Extension\FilterSectionInterface; |
|
|
use Lc\CaracoleBundle\Model\Section\SectionInterface; |
|
|
use Lc\CaracoleBundle\Model\Section\SectionInterface; |
|
|
|
|
|
use Lc\CaracoleBundle\Resolver\SectionResolver; |
|
|
use Lc\SovBundle\Controller\AbstractAdminController as SovAbstractAdminController; |
|
|
use Lc\SovBundle\Controller\AbstractAdminController as SovAbstractAdminController; |
|
|
use Lc\SovBundle\Definition\ActionDefinition; |
|
|
use Lc\SovBundle\Definition\ActionDefinition; |
|
|
use Lc\SovBundle\Doctrine\Extension\StatusInterface; |
|
|
use Lc\SovBundle\Doctrine\Extension\StatusInterface; |
|
|
|
|
|
|
|
|
$repositoryQuery->filterIsOnlineAndOffline(); |
|
|
$repositoryQuery->filterIsOnlineAndOffline(); |
|
|
} |
|
|
} |
|
|
if ($this->isInstanceOf(FilterSectionInterface::class)) { |
|
|
if ($this->isInstanceOf(FilterSectionInterface::class)) { |
|
|
$repositoryQuery->filterBySection($this->getSectionCurrentDefault()); |
|
|
|
|
|
|
|
|
if($this->getSectionCurrent()){ |
|
|
|
|
|
$repositoryQuery->filterBySection($this->getSectionCurrent()); |
|
|
|
|
|
}else{ |
|
|
|
|
|
$repositoryQuery->filterBySection($this->get(SectionContainer::class)->getStore()->getOneDefault()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if ($this->isInstanceOf(FilterMerchantInterface::class)) { |
|
|
if ($this->isInstanceOf(FilterMerchantInterface::class)) { |