use Lc\CaracoleBundle\Definition\SectionSettingDefinitionInterface; | use Lc\CaracoleBundle\Definition\SectionSettingDefinitionInterface; | ||||
use Lc\SovBundle\Definition\SiteSettingDefinition; | use Lc\SovBundle\Definition\SiteSettingDefinition; | ||||
use Lc\SovBundle\Form\Setting\SiteSettingsFormType; | use Lc\SovBundle\Form\Setting\SiteSettingsFormType; | ||||
use Lc\SovBundle\Repository\Site\SiteRepositoryInterface; | |||||
use Lc\SovBundle\Repository\Site\SiteRepository; | |||||
use Lc\SovBundle\Translation\TranslatorAdmin; | use Lc\SovBundle\Translation\TranslatorAdmin; | ||||
use Symfony\Component\HttpFoundation\Request; | use Symfony\Component\HttpFoundation\Request; | ||||
use Symfony\Component\Routing\Annotation\Route; | use Symfony\Component\Routing\Annotation\Route; | ||||
MerchantSettingDefinitionInterface $merchantSettingDefinition, | MerchantSettingDefinitionInterface $merchantSettingDefinition, | ||||
SectionSettingDefinitionInterface $sectionSettingDefinition, | SectionSettingDefinitionInterface $sectionSettingDefinition, | ||||
SiteSettingDefinition $siteSettingDefinition, | SiteSettingDefinition $siteSettingDefinition, | ||||
SiteRepositoryInterface $siteRepository | |||||
SiteRepository $siteRepository | |||||
) { | ) { | ||||
$this->em = $em; | $this->em = $em; | ||||
$this->translatorAdmin = $translatorAdmin; | $this->translatorAdmin = $translatorAdmin; |
use Lc\CaracoleBundle\Factory\Setting\SectionSettingFactory; | use Lc\CaracoleBundle\Factory\Setting\SectionSettingFactory; | ||||
use Lc\CaracoleBundle\Model\Section\SectionInterface; | use Lc\CaracoleBundle\Model\Section\SectionInterface; | ||||
use Lc\CaracoleBundle\Definition\SectionSettingDefinitionInterface; | use Lc\CaracoleBundle\Definition\SectionSettingDefinitionInterface; | ||||
use Lc\CaracoleBundle\Repository\Merchant\MerchantRepositoryInterface; | |||||
use Lc\CaracoleBundle\Repository\Section\SectionRepositoryInterface; | |||||
use Lc\CaracoleBundle\Repository\Merchant\MerchantRepository; | |||||
use Lc\CaracoleBundle\Repository\Section\SectionRepository; | |||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | use Symfony\Component\EventDispatcher\EventSubscriberInterface; | ||||
use Symfony\Component\HttpKernel\KernelEvents; | use Symfony\Component\HttpKernel\KernelEvents; | ||||
EntityManagerInterface $em, | EntityManagerInterface $em, | ||||
MerchantSettingDefinitionInterface $merchantSettingDefinition, | MerchantSettingDefinitionInterface $merchantSettingDefinition, | ||||
SectionSettingDefinitionInterface $sectionSettingDefinition, | SectionSettingDefinitionInterface $sectionSettingDefinition, | ||||
MerchantRepositoryInterface $merchantRepository, | |||||
SectionRepositoryInterface $sectionRepository, | |||||
MerchantRepository $merchantRepository, | |||||
SectionRepository $sectionRepository, | |||||
MerchantSettingFactory $merchantSettingFactory, | MerchantSettingFactory $merchantSettingFactory, | ||||
SectionSettingFactory $sectionSettingFactory | SectionSettingFactory $sectionSettingFactory | ||||
) | ) |
namespace Lc\CaracoleBundle\Repository\Address; | namespace Lc\CaracoleBundle\Repository\Address; | ||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||||
use App\Entity\Address\Address; | |||||
use Doctrine\Persistence\ManagerRegistry; | use Doctrine\Persistence\ManagerRegistry; | ||||
use Lc\CaracoleBundle\Model\Address\AddressInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepository; | |||||
/** | |||||
* @method AddressInterface|null find($id, $lockMode = null, $lockVersion = null) | |||||
* @method AddressInterface|null findOneBy(array $criteria, array $orderBy = null) | |||||
* @method AddressInterface[] findAll() | |||||
* @method AddressInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) | |||||
*/ | |||||
class AddressRepository extends ServiceEntityRepository | |||||
class AddressRepository extends AbstractRepository | |||||
{ | { | ||||
public function __construct(ManagerRegistry $registry) | public function __construct(ManagerRegistry $registry) | ||||
{ | { | ||||
parent::__construct($registry, AddressInterface::class); | |||||
parent::__construct($registry, Address::class); | |||||
} | } | ||||
} | } |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Address; | |||||
use Knp\Component\Pager\PaginatorInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||||
class AddressRepositoryQuery extends AbstractRepositoryQuery implements AddressRepositoryQueryInterface | |||||
{ | |||||
public function __construct(AddressRepository $repository, PaginatorInterface $paginator) | |||||
{ | |||||
parent::__construct($repository, 'r', $paginator); | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Address; | |||||
interface AddressRepositoryQueryInterface | |||||
{ | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Address; | |||||
class AddressStore implements AddressStoreInterface | |||||
{ | |||||
protected AddressRepositoryQueryInterface $query; | |||||
public function __construct(AddressRepositoryQueryInterface $query) | |||||
{ | |||||
$this->query = $query; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Address; | |||||
interface AddressStoreInterface | |||||
{ | |||||
} |
use App\Entity\Config\TaxRate; | use App\Entity\Config\TaxRate; | ||||
use Doctrine\Persistence\ManagerRegistry; | use Doctrine\Persistence\ManagerRegistry; | ||||
use Lc\CaracoleBundle\Repository\RepositoryTrait; | |||||
use Lc\SovBundle\Repository\AbstractRepository; | use Lc\SovBundle\Repository\AbstractRepository; | ||||
class TaxRateRepository extends AbstractRepository | class TaxRateRepository extends AbstractRepository | ||||
{ | { | ||||
use RepositoryTrait; | |||||
public function __construct(ManagerRegistry $registry) | public function __construct(ManagerRegistry $registry) | ||||
{ | { | ||||
parent::__construct($registry, TaxRate::class); | parent::__construct($registry, TaxRate::class); |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Config; | |||||
use Knp\Component\Pager\PaginatorInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||||
class TaxRateRepositoryQuery extends AbstractRepositoryQuery implements TaxRateRepositoryQueryInterface | |||||
{ | |||||
public function __construct(TaxRateRepository $repository, PaginatorInterface $paginator) | |||||
{ | |||||
parent::__construct($repository, 'r', $paginator); | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Config; | |||||
interface TaxRateRepositoryQueryInterface | |||||
{ | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Config; | |||||
class TaxRateStore implements TaxRateStoreInterface | |||||
{ | |||||
protected TaxRateRepositoryQueryInterface $query; | |||||
public function __construct(TaxRateRepositoryQueryInterface $query) | |||||
{ | |||||
$this->query = $query; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Config; | |||||
interface TaxRateStoreInterface | |||||
{ | |||||
} |
use App\Entity\Config\Unit; | use App\Entity\Config\Unit; | ||||
use Doctrine\Persistence\ManagerRegistry; | use Doctrine\Persistence\ManagerRegistry; | ||||
use Lc\CaracoleBundle\Repository\RepositoryTrait; | |||||
use Lc\SovBundle\Repository\AbstractRepository; | use Lc\SovBundle\Repository\AbstractRepository; | ||||
class UnitRepository extends AbstractRepository | class UnitRepository extends AbstractRepository | ||||
{ | { | ||||
use RepositoryTrait; | |||||
public function __construct(ManagerRegistry $registry) | public function __construct(ManagerRegistry $registry) | ||||
{ | { | ||||
parent::__construct($registry, Unit::class); | parent::__construct($registry, Unit::class); | ||||
} | } | ||||
} | } |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Config; | |||||
use Knp\Component\Pager\PaginatorInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||||
class UnitRepositoryQuery extends AbstractRepositoryQuery implements UnitRepositoryQueryInterface | |||||
{ | |||||
public function __construct(UnitRepository $repository, PaginatorInterface $paginator) | |||||
{ | |||||
parent::__construct($repository, 'r', $paginator); | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Config; | |||||
interface UnitRepositoryQueryInterface | |||||
{ | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Config; | |||||
class UnitStore implements UnitStoreInterface | |||||
{ | |||||
protected UnitRepositoryQueryInterface $query; | |||||
public function __construct(UnitRepositoryQueryInterface $query) | |||||
{ | |||||
$this->query = $query; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Config; | |||||
interface UnitStoreInterface | |||||
{ | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Credit; | |||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||||
use Doctrine\Persistence\ManagerRegistry; | |||||
use Lc\CaracoleBundle\Model\Credit\CreditConfigInterface; | |||||
/** | |||||
* @method CreditConfigInterface|null find($id, $lockMode = null, $lockVersion = null) | |||||
* @method CreditConfigInterface|null findOneBy(array $criteria, array $orderBy = null) | |||||
* @method CreditConfigInterface[] findAll() | |||||
* @method CreditConfigInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) | |||||
*/ | |||||
class CreditConfigRepository extends ServiceEntityRepository | |||||
{ | |||||
public function __construct(ManagerRegistry $registry) | |||||
{ | |||||
parent::__construct($registry, CreditConfigInterface::class); | |||||
} | |||||
} |
use Doctrine\Persistence\ManagerRegistry; | use Doctrine\Persistence\ManagerRegistry; | ||||
use Lc\SovBundle\Repository\AbstractRepository; | use Lc\SovBundle\Repository\AbstractRepository; | ||||
class CreditHistoryRepository extends AbstractRepository implements CreditHistoryRepositoryInterface | |||||
class CreditHistoryRepository extends AbstractRepository | |||||
{ | { | ||||
public function __construct(ManagerRegistry $registry) | public function __construct(ManagerRegistry $registry) | ||||
{ | { |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Credit; | |||||
use Knp\Component\Pager\PaginatorInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||||
class CreditHistoryRepositoryQuery extends AbstractRepositoryQuery implements CreditHistoryRepositoryQueryInterface | |||||
{ | |||||
public function __construct(CreditHistoryRepository $repository, PaginatorInterface $paginator) | |||||
{ | |||||
parent::__construct($repository, 'r', $paginator); | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Credit; | |||||
interface CreditHistoryRepositoryQueryInterface | |||||
{ | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Credit; | |||||
class CreditHistoryStore implements CreditHistoryStoreInterface | |||||
{ | |||||
protected CreditHistoryRepositoryQueryInterface $query; | |||||
public function __construct(CreditHistoryRepositoryQueryInterface $query) | |||||
{ | |||||
$this->query = $query; | |||||
} | |||||
} |
namespace Lc\CaracoleBundle\Repository\Credit; | namespace Lc\CaracoleBundle\Repository\Credit; | ||||
interface CreditHistoryRepositoryInterface | |||||
interface CreditHistoryStoreInterface | |||||
{ | { | ||||
} | |||||
} |
namespace Lc\CaracoleBundle\Repository\File; | namespace Lc\CaracoleBundle\Repository\File; | ||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||||
use App\Entity\File\Document; | |||||
use Doctrine\Persistence\ManagerRegistry; | use Doctrine\Persistence\ManagerRegistry; | ||||
use Lc\CaracoleBundle\Model\File\DocumentInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepository; | |||||
/** | |||||
* @method DocumentInterface|null find($id, $lockMode = null, $lockVersion = null) | |||||
* @method DocumentInterface|null findOneBy(array $criteria, array $orderBy = null) | |||||
* @method DocumentInterface[] findAll() | |||||
* @method DocumentInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) | |||||
*/ | |||||
class DocumentRepository extends ServiceEntityRepository | |||||
class DocumentRepository extends AbstractRepository | |||||
{ | { | ||||
public function __construct(ManagerRegistry $registry) | public function __construct(ManagerRegistry $registry) | ||||
{ | { | ||||
parent::__construct($registry, DocumentInterface::class); | |||||
parent::__construct($registry, Document::class); | |||||
} | } | ||||
} | } |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\File; | |||||
use Knp\Component\Pager\PaginatorInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||||
class DocumentRepositoryQuery extends AbstractRepositoryQuery implements DocumentRepositoryQueryInterface | |||||
{ | |||||
public function __construct(DocumentRepository $repository, PaginatorInterface $paginator) | |||||
{ | |||||
parent::__construct($repository, 'r', $paginator); | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\File; | |||||
interface DocumentRepositoryQueryInterface | |||||
{ | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\File; | |||||
class DocumentStore implements DocumentStoreInterface | |||||
{ | |||||
protected DocumentRepositoryQueryInterface $query; | |||||
public function __construct(DocumentRepositoryQueryInterface $query) | |||||
{ | |||||
$this->query = $query; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\File; | |||||
interface DocumentStoreInterface | |||||
{ | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Merchant; | |||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||||
use Doctrine\Persistence\ManagerRegistry; | |||||
use Lc\CaracoleBundle\Model\Merchant\MerchantConfigInterface; | |||||
/** | |||||
* @method MerchantConfigInterface|null find($id, $lockMode = null, $lockVersion = null) | |||||
* @method MerchantConfigInterface|null findOneBy(array $criteria, array $orderBy = null) | |||||
* @method MerchantConfigInterface[] findAll() | |||||
* @method MerchantConfigInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) | |||||
*/ | |||||
class MerchantConfigRepository extends ServiceEntityRepository | |||||
{ | |||||
public function __construct(ManagerRegistry $registry) | |||||
{ | |||||
parent::__construct($registry, MerchantConfigInterface::class); | |||||
} | |||||
} |
use Doctrine\Persistence\ManagerRegistry; | use Doctrine\Persistence\ManagerRegistry; | ||||
use Lc\SovBundle\Repository\AbstractRepository; | use Lc\SovBundle\Repository\AbstractRepository; | ||||
class MerchantRepository extends AbstractRepository implements MerchantRepositoryInterface | |||||
class MerchantRepository extends AbstractRepository | |||||
{ | { | ||||
public function __construct(ManagerRegistry $registry) | public function __construct(ManagerRegistry $registry) | ||||
{ | { |
namespace Lc\CaracoleBundle\Repository\Merchant; | namespace Lc\CaracoleBundle\Repository\Merchant; | ||||
use Knp\Component\Pager\PaginatorInterface; | use Knp\Component\Pager\PaginatorInterface; | ||||
use Lc\CaracoleBundle\Repository\RepositoryMerchantTrait; | |||||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | use Lc\SovBundle\Repository\AbstractRepositoryQuery; | ||||
class MerchantRepositoryQuery extends AbstractRepositoryQuery | |||||
class MerchantRepositoryQuery extends AbstractRepositoryQuery implements MerchantRepositoryQueryInterface | |||||
{ | { | ||||
use RepositoryMerchantTrait; | |||||
public function __construct(MerchantRepositoryInterface $repository, PaginatorInterface $paginator) | |||||
public function __construct(MerchantRepository $repository, PaginatorInterface $paginator) | |||||
{ | { | ||||
parent::__construct($repository, 'r', $paginator); | parent::__construct($repository, 'r', $paginator); | ||||
} | } |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Merchant; | |||||
interface MerchantRepositoryQueryInterface | |||||
{ | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Merchant; | |||||
class MerchantStore implements MerchantStoreInterface | |||||
{ | |||||
protected MerchantRepositoryQueryInterface $query; | |||||
public function __construct(MerchantRepositoryQueryInterface $query) | |||||
{ | |||||
$this->query = $query; | |||||
} | |||||
} |
namespace Lc\CaracoleBundle\Repository\Merchant; | namespace Lc\CaracoleBundle\Repository\Merchant; | ||||
interface MerchantRepositoryInterface | |||||
interface MerchantStoreInterface | |||||
{ | { | ||||
} | } |
namespace Lc\CaracoleBundle\Repository\Order; | namespace Lc\CaracoleBundle\Repository\Order; | ||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||||
use App\Entity\Order\OrderPayment; | |||||
use Doctrine\Persistence\ManagerRegistry; | use Doctrine\Persistence\ManagerRegistry; | ||||
use Lc\CaracoleBundle\Model\Order\OrderPaymentInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepository; | |||||
/** | |||||
* @method OrderPaymentInterface|null find($id, $lockMode = null, $lockVersion = null) | |||||
* @method OrderPaymentInterface|null findOneBy(array $criteria, array $orderBy = null) | |||||
* @method OrderPaymentInterface[] findAll() | |||||
* @method OrderPaymentInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) | |||||
*/ | |||||
class OrderPaymentRepository extends ServiceEntityRepository | |||||
class OrderPaymentRepository extends AbstractRepository | |||||
{ | { | ||||
public function __construct(ManagerRegistry $registry) | public function __construct(ManagerRegistry $registry) | ||||
{ | { | ||||
parent::__construct($registry, OrderPaymentInterface::class); | |||||
parent::__construct($registry, OrderPayment::class); | |||||
} | } | ||||
} | } |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
use Knp\Component\Pager\PaginatorInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||||
class OrderPaymentRepositoryQuery extends AbstractRepositoryQuery implements OrderPaymentRepositoryQueryInterface | |||||
{ | |||||
public function __construct(OrderPaymentRepository $repository, PaginatorInterface $paginator) | |||||
{ | |||||
parent::__construct($repository, 'r', $paginator); | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
interface OrderPaymentRepositoryQueryInterface{ | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
class OrderPaymentStore implements OrderPaymentStoreInterface | |||||
{ | |||||
protected OrderPaymentRepositoryQueryInterface $query; | |||||
public function __construct(OrderPaymentRepositoryQueryInterface $query) | |||||
{ | |||||
$this->query = $query; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
interface OrderPaymentStoreInterface{ | |||||
} |
namespace Lc\CaracoleBundle\Repository\Order; | namespace Lc\CaracoleBundle\Repository\Order; | ||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||||
use App\Entity\Order\OrderProductReductionCatalog; | |||||
use Doctrine\Persistence\ManagerRegistry; | use Doctrine\Persistence\ManagerRegistry; | ||||
use Lc\CaracoleBundle\Model\Order\OrderProductReductionCatalogInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepository; | |||||
/** | |||||
* @method OrderProductReductionCatalogInterface|null find($id, $lockMode = null, $lockVersion = null) | |||||
* @method OrderProductReductionCatalogInterface|null findOneBy(array $criteria, array $orderBy = null) | |||||
* @method OrderProductReductionCatalogInterface[] findAll() | |||||
* @method OrderProductReductionCatalogInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) | |||||
*/ | |||||
class OrderProductReductionCatalogRepository extends ServiceEntityRepository | |||||
class OrderProductReductionCatalogRepository extends AbstractRepository | |||||
{ | { | ||||
public function __construct(ManagerRegistry $registry) | public function __construct(ManagerRegistry $registry) | ||||
{ | { | ||||
parent::__construct($registry, OrderProductReductionCatalogInterface::class); | |||||
parent::__construct($registry, OrderProductReductionCatalog::class); | |||||
} | } | ||||
} | } |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
use Knp\Component\Pager\PaginatorInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||||
class OrderProductReductionCatalogRepositoryQuery extends AbstractRepositoryQuery implements OrderProductReductionCatalogRepositoryQueryInterface | |||||
{ | |||||
public function __construct(OrderProductReductionCatalogRepository $repository, PaginatorInterface $paginator) | |||||
{ | |||||
parent::__construct($repository, 'r', $paginator); | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
interface OrderProductReductionCatalogRepositoryQueryInterface{ | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
class OrderProductReductionCatalogStore implements OrderProductReductionCatalogStoreInterface | |||||
{ | |||||
protected OrderProductReductionCatalogRepositoryQueryInterface $query; | |||||
public function __construct(OrderProductReductionCatalogRepositoryQueryInterface $query) | |||||
{ | |||||
$this->query = $query; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
interface OrderProductReductionCatalogStoreInterface{ | |||||
} |
namespace Lc\CaracoleBundle\Repository\Order; | namespace Lc\CaracoleBundle\Repository\Order; | ||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||||
use App\Entity\Order\OrderProductRefund; | |||||
use Doctrine\Persistence\ManagerRegistry; | use Doctrine\Persistence\ManagerRegistry; | ||||
use Lc\CaracoleBundle\Model\Order\OrderRefundInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepository; | |||||
/** | |||||
* @method OrderRefundInterface|null find($id, $lockMode = null, $lockVersion = null) | |||||
* @method OrderRefundInterface|null findOneBy(array $criteria, array $orderBy = null) | |||||
* @method OrderRefundInterface[] findAll() | |||||
* @method OrderRefundInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) | |||||
*/ | |||||
class OrderProductRefundRepository extends ServiceEntityRepository | |||||
class OrderProductRefundRepository extends AbstractRepository | |||||
{ | { | ||||
public function __construct(ManagerRegistry $registry) | public function __construct(ManagerRegistry $registry) | ||||
{ | { | ||||
parent::__construct($registry, OrderRefundInterface::class); | |||||
parent::__construct($registry, OrderProductRefund::class); | |||||
} | } | ||||
} | } |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
use Knp\Component\Pager\PaginatorInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||||
class OrderProductRefundRepositoryQuery extends AbstractRepositoryQuery implements OrderProductRefundRepositoryQueryInterface | |||||
{ | |||||
public function __construct(OrderProductRefundRepository $repository, PaginatorInterface $paginator) | |||||
{ | |||||
parent::__construct($repository, 'r', $paginator); | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
interface OrderProductRefundRepositoryQueryInterface{ | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
class OrderProductRefundStore implements OrderProductRefundStoreInterface | |||||
{ | |||||
protected OrderProductRefundRepositoryQueryInterface $query; | |||||
public function __construct(OrderProductRefundRepositoryQueryInterface $query) | |||||
{ | |||||
$this->query = $query; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
interface OrderProductRefundStoreInterface{ | |||||
} |
namespace Lc\CaracoleBundle\Repository\Order; | namespace Lc\CaracoleBundle\Repository\Order; | ||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||||
use App\Entity\Order\OrderProduct; | |||||
use Doctrine\Persistence\ManagerRegistry; | use Doctrine\Persistence\ManagerRegistry; | ||||
use Lc\CaracoleBundle\Model\Order\OrderProductInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepository; | |||||
/** | |||||
* @method OrderProductInterface|null find($id, $lockMode = null, $lockVersion = null) | |||||
* @method OrderProductInterface|null findOneBy(array $criteria, array $orderBy = null) | |||||
* @method OrderProductInterface[] findAll() | |||||
* @method OrderProductInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) | |||||
*/ | |||||
class OrderProductRepository extends ServiceEntityRepository | |||||
class OrderProductRepository extends AbstractRepository | |||||
{ | { | ||||
public function __construct(ManagerRegistry $registry) | public function __construct(ManagerRegistry $registry) | ||||
{ | { | ||||
parent::__construct($registry, OrderProductInterface::class); | |||||
parent::__construct($registry, OrderProduct::class); | |||||
} | } | ||||
} | } |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
use Knp\Component\Pager\PaginatorInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||||
class OrderProductRepositoryQuery extends AbstractRepositoryQuery implements OrderProductRepositoryQueryInterface | |||||
{ | |||||
public function __construct(OrderProductRepository $repository, PaginatorInterface $paginator) | |||||
{ | |||||
parent::__construct($repository, 'r', $paginator); | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
interface OrderProductRepositoryQueryInterface{ | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
class OrderProductStore implements OrderProductStoreInterface | |||||
{ | |||||
protected OrderProductRepositoryQueryInterface $query; | |||||
public function __construct(OrderProductRepositoryQueryInterface $query) | |||||
{ | |||||
$this->query = $query; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
interface OrderProductStoreInterface{ | |||||
} |
namespace Lc\CaracoleBundle\Repository\Order; | namespace Lc\CaracoleBundle\Repository\Order; | ||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||||
use App\Entity\Order\OrderReductionCart; | |||||
use Doctrine\Persistence\ManagerRegistry; | use Doctrine\Persistence\ManagerRegistry; | ||||
use Lc\CaracoleBundle\Model\Order\OrderReductionCartInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepository; | |||||
/** | |||||
* @method OrderReductionCartInterface|null find($id, $lockMode = null, $lockVersion = null) | |||||
* @method OrderReductionCartInterface|null findOneBy(array $criteria, array $orderBy = null) | |||||
* @method OrderReductionCartInterface[] findAll() | |||||
* @method OrderReductionCartInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) | |||||
*/ | |||||
class OrderReductionCartRepository extends ServiceEntityRepository | |||||
class OrderReductionCartRepository extends AbstractRepository | |||||
{ | { | ||||
public function __construct(ManagerRegistry $registry) | public function __construct(ManagerRegistry $registry) | ||||
{ | { | ||||
parent::__construct($registry, OrderReductionCartInterface::class); | |||||
parent::__construct($registry, OrderReductionCart::class); | |||||
} | } | ||||
} | } |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
use Knp\Component\Pager\PaginatorInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||||
class OrderReductionCartRepositoryQuery extends AbstractRepositoryQuery implements OrderReductionCartRepositoryQueryInterface | |||||
{ | |||||
public function __construct(OrderReductionCartRepository $repository, PaginatorInterface $paginator) | |||||
{ | |||||
parent::__construct($repository, 'r', $paginator); | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
interface OrderReductionCartRepositoryQueryInterface{ | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
class OrderReductionCartStore implements OrderReductionCartStoreInterface | |||||
{ | |||||
protected OrderReductionCartRepositoryQueryInterface $query; | |||||
public function __construct(OrderReductionCartRepositoryQueryInterface $query) | |||||
{ | |||||
$this->query = $query; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
interface OrderReductionCartStoreInterface{ | |||||
} |
namespace Lc\CaracoleBundle\Repository\Order; | namespace Lc\CaracoleBundle\Repository\Order; | ||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||||
use App\Entity\Order\OrderReductionCredit; | |||||
use Doctrine\Persistence\ManagerRegistry; | use Doctrine\Persistence\ManagerRegistry; | ||||
use Lc\CaracoleBundle\Model\Order\OrderReductionCreditInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepository; | |||||
/** | |||||
* @method OrderReductionCreditInterface|null find($id, $lockMode = null, $lockVersion = null) | |||||
* @method OrderReductionCreditInterface|null findOneBy(array $criteria, array $orderBy = null) | |||||
* @method OrderReductionCreditInterface[] findAll() | |||||
* @method OrderReductionCreditInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) | |||||
*/ | |||||
class OrderReductionCreditRepository extends ServiceEntityRepository | |||||
class OrderReductionCreditRepository extends AbstractRepository | |||||
{ | { | ||||
public function __construct(ManagerRegistry $registry) | public function __construct(ManagerRegistry $registry) | ||||
{ | { | ||||
parent::__construct($registry, OrderReductionCreditInterface::class); | |||||
parent::__construct($registry, OrderReductionCredit::class); | |||||
} | } | ||||
} | } |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
use Knp\Component\Pager\PaginatorInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||||
class OrderReductionCreditRepositoryQuery extends AbstractRepositoryQuery implements OrderReductionCreditRepositoryQueryInterface | |||||
{ | |||||
public function __construct(OrderReductionCreditRepository $repository, PaginatorInterface $paginator) | |||||
{ | |||||
parent::__construct($repository, 'r', $paginator); | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
interface OrderReductionCreditRepositoryQueryInterface{ | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
class OrderReductionCreditStore implements OrderReductionCreditStoreInterface | |||||
{ | |||||
protected OrderReductionCreditRepositoryQueryInterface $query; | |||||
public function __construct(OrderReductionCreditRepositoryQueryInterface $query) | |||||
{ | |||||
$this->query = $query; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
interface OrderReductionCreditStoreInterface{ | |||||
} |
namespace Lc\CaracoleBundle\Repository\Order; | namespace Lc\CaracoleBundle\Repository\Order; | ||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||||
use App\Entity\Order\OrderRefund; | |||||
use Doctrine\Persistence\ManagerRegistry; | use Doctrine\Persistence\ManagerRegistry; | ||||
use Lc\CaracoleBundle\Model\Order\OrderRefundInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepository; | |||||
/** | |||||
* @method OrderRefundInterface|null find($id, $lockMode = null, $lockVersion = null) | |||||
* @method OrderRefundInterface|null findOneBy(array $criteria, array $orderBy = null) | |||||
* @method OrderRefundInterface[] findAll() | |||||
* @method OrderRefundInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) | |||||
*/ | |||||
class OrderRefundRepository extends ServiceEntityRepository | |||||
class OrderRefundRepository extends AbstractRepository | |||||
{ | { | ||||
public function __construct(ManagerRegistry $registry) | public function __construct(ManagerRegistry $registry) | ||||
{ | { | ||||
parent::__construct($registry, OrderRefundInterface::class); | |||||
parent::__construct($registry, OrderRefund::class); | |||||
} | } | ||||
} | } |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
use Knp\Component\Pager\PaginatorInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||||
class OrderRefundRepositoryQuery extends AbstractRepositoryQuery implements OrderRefundRepositoryQueryInterface | |||||
{ | |||||
public function __construct(OrderRefundRepository $repository, PaginatorInterface $paginator) | |||||
{ | |||||
parent::__construct($repository, 'r', $paginator); | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
interface OrderRefundRepositoryQueryInterface{ | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
class OrderRefundStore implements OrderRefundStoreInterface | |||||
{ | |||||
protected OrderRefundRepositoryQueryInterface $query; | |||||
public function __construct(OrderRefundRepositoryQueryInterface $query) | |||||
{ | |||||
$this->query = $query; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
interface OrderRefundStoreInterface{ | |||||
} |
namespace Lc\CaracoleBundle\Repository\Order; | namespace Lc\CaracoleBundle\Repository\Order; | ||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||||
use App\Entity\Order\OrderShop; | |||||
use Doctrine\Persistence\ManagerRegistry; | use Doctrine\Persistence\ManagerRegistry; | ||||
use Lc\CaracoleBundle\Model\Order\OrderShopInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepository; | |||||
/** | |||||
* @method OrderShopInterface|null find($id, $lockMode = null, $lockVersion = null) | |||||
* @method OrderShopInterface|null findOneBy(array $criteria, array $orderBy = null) | |||||
* @method OrderShopInterface[] findAll() | |||||
* @method OrderShopInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) | |||||
*/ | |||||
class OrderShopRepository extends ServiceEntityRepository | |||||
class OrderShopRepository extends AbstractRepository | |||||
{ | { | ||||
public function __construct(ManagerRegistry $registry) | public function __construct(ManagerRegistry $registry) | ||||
{ | { | ||||
parent::__construct($registry, OrderShopInterface::class); | |||||
parent::__construct($registry, OrderShop::class); | |||||
} | } | ||||
} | } |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
use Knp\Component\Pager\PaginatorInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||||
class OrderShopRepositoryQuery extends AbstractRepositoryQuery implements OrderShopRepositoryQueryInterface | |||||
{ | |||||
public function __construct(OrderShopRepository $repository, PaginatorInterface $paginator) | |||||
{ | |||||
parent::__construct($repository, 'r', $paginator); | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
interface OrderShopRepositoryQueryInterface{ | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
class OrderShopStore implements OrderShopStoreInterface | |||||
{ | |||||
protected OrderShopRepositoryQueryInterface $query; | |||||
public function __construct(OrderShopRepositoryQueryInterface $query) | |||||
{ | |||||
$this->query = $query; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
interface OrderShopStoreInterface{ | |||||
} |
namespace Lc\CaracoleBundle\Repository\Order; | namespace Lc\CaracoleBundle\Repository\Order; | ||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||||
use App\Entity\Order\OrderStatusHistory; | |||||
use Doctrine\Persistence\ManagerRegistry; | use Doctrine\Persistence\ManagerRegistry; | ||||
use Lc\CaracoleBundle\Model\Order\OrderStatusHistoryInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepository; | |||||
/** | |||||
* @method OrderStatusHistoryInterface|null find($id, $lockMode = null, $lockVersion = null) | |||||
* @method OrderStatusHistoryInterface|null findOneBy(array $criteria, array $orderBy = null) | |||||
* @method OrderStatusHistoryInterface[] findAll() | |||||
* @method OrderStatusHistoryInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) | |||||
*/ | |||||
class OrderStatusHistoryRepository extends ServiceEntityRepository | |||||
class OrderStatusHistoryRepository extends AbstractRepository | |||||
{ | { | ||||
public function __construct(ManagerRegistry $registry) | public function __construct(ManagerRegistry $registry) | ||||
{ | { | ||||
parent::__construct($registry, OrderStatusHistoryInterface::class); | |||||
parent::__construct($registry, OrderStatusHistory::class); | |||||
} | } | ||||
} | } |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
use Knp\Component\Pager\PaginatorInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||||
class OrderStatusHistoryRepositoryQuery extends AbstractRepositoryQuery implements OrderStatusHistoryRepositoryQueryInterface | |||||
{ | |||||
public function __construct(OrderStatusHistoryRepository $repository, PaginatorInterface $paginator) | |||||
{ | |||||
parent::__construct($repository, 'r', $paginator); | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
interface OrderStatusHistoryRepositoryQueryInterface{ | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
class OrderStatusHistoryStore implements OrderStatusHistoryStoreInterface | |||||
{ | |||||
protected OrderStatusHistoryRepositoryQueryInterface $query; | |||||
public function __construct(OrderStatusHistoryRepositoryQueryInterface $query) | |||||
{ | |||||
$this->query = $query; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
interface OrderStatusHistoryStoreInterface{ | |||||
} |
namespace Lc\CaracoleBundle\Repository\Order; | namespace Lc\CaracoleBundle\Repository\Order; | ||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||||
use App\Entity\Order\OrderStatus; | |||||
use Doctrine\Persistence\ManagerRegistry; | use Doctrine\Persistence\ManagerRegistry; | ||||
use Lc\CaracoleBundle\Model\Order\OrderStatusInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepository; | |||||
/** | |||||
* @method OrderStatusInterface|null find($id, $lockMode = null, $lockVersion = null) | |||||
* @method OrderStatusInterface|null findOneBy(array $criteria, array $orderBy = null) | |||||
* @method OrderStatusInterface[] findAll() | |||||
* @method OrderStatusInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) | |||||
*/ | |||||
class OrderStatusRepository extends ServiceEntityRepository | |||||
class OrderStatusRepository extends AbstractRepository | |||||
{ | { | ||||
public function __construct(ManagerRegistry $registry) | public function __construct(ManagerRegistry $registry) | ||||
{ | { | ||||
parent::__construct($registry, OrderStatusInterface::class); | |||||
parent::__construct($registry, OrderStatus::class); | |||||
} | } | ||||
} | } |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
use Knp\Component\Pager\PaginatorInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||||
class OrderStatusRepositoryQuery extends AbstractRepositoryQuery implements OrderStatusRepositoryQueryInterface | |||||
{ | |||||
public function __construct(OrderStatusRepository $repository, PaginatorInterface $paginator) | |||||
{ | |||||
parent::__construct($repository, 'r', $paginator); | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
interface OrderStatusRepositoryQueryInterface{ | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
class OrderStatusStore implements OrderStatusStoreInterface | |||||
{ | |||||
protected OrderStatusRepositoryQueryInterface $query; | |||||
public function __construct(OrderStatusRepositoryQueryInterface $query) | |||||
{ | |||||
$this->query = $query; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Order; | |||||
interface OrderStatusStoreInterface{ | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\PointSale; | |||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||||
use Doctrine\Persistence\ManagerRegistry; | |||||
use Lc\CaracoleBundle\Model\PointSale\PointSaleDayInfoInterface; | |||||
/** | |||||
* @method PointSaleDayInfoInterface|null find($id, $lockMode = null, $lockVersion = null) | |||||
* @method PointSaleDayInfoInterface|null findOneBy(array $criteria, array $orderBy = null) | |||||
* @method PointSaleDayInfoInterface[] findAll() | |||||
* @method PointSaleDayInfoInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) | |||||
*/ | |||||
class PointSaleDayInfoRepository extends ServiceEntityRepository | |||||
{ | |||||
public function __construct(ManagerRegistry $registry) | |||||
{ | |||||
parent::__construct($registry, PointSaleDayInfoInterface::class); | |||||
} | |||||
} |
use App\Entity\PointSale\PointSale; | use App\Entity\PointSale\PointSale; | ||||
use Doctrine\Persistence\ManagerRegistry; | use Doctrine\Persistence\ManagerRegistry; | ||||
use Lc\CaracoleBundle\Repository\RepositoryTrait; | |||||
use Lc\SovBundle\Repository\AbstractRepository; | use Lc\SovBundle\Repository\AbstractRepository; | ||||
class PointSaleRepository extends AbstractRepository implements PointSaleRepositoryInterface | |||||
class PointSaleRepository extends AbstractRepository | |||||
{ | { | ||||
use RepositoryTrait; | |||||
public function __construct(ManagerRegistry $registry) | public function __construct(ManagerRegistry $registry) | ||||
{ | { | ||||
parent::__construct($registry, PointSale::class); | parent::__construct($registry, PointSale::class); |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\PointSale; | |||||
use Knp\Component\Pager\PaginatorInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||||
class PointSaleRepositoryQuery extends AbstractRepositoryQuery implements PointSaleRepositoryQueryInterface | |||||
{ | |||||
public function __construct(PointSaleRepository $repository, PaginatorInterface $paginator) | |||||
{ | |||||
parent::__construct($repository, 'r', $paginator); | |||||
} | |||||
} |
namespace Lc\CaracoleBundle\Repository\PointSale; | namespace Lc\CaracoleBundle\Repository\PointSale; | ||||
interface PointSaleRepositoryInterface | |||||
{ | |||||
interface PointSaleRepositoryQueryInterface{ | |||||
} | } |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\PointSale; | |||||
class PointSaleStore implements PointSaleStoreInterface | |||||
{ | |||||
protected PointSaleRepositoryQueryInterface $query; | |||||
public function __construct(PointSaleRepositoryQueryInterface $query) | |||||
{ | |||||
$this->query = $query; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\PointSale; | |||||
interface PointSaleStoreInterface{ | |||||
} |
namespace Lc\CaracoleBundle\Repository\Product; | namespace Lc\CaracoleBundle\Repository\Product; | ||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||||
use App\Entity\Product\ProductCategory; | |||||
use Doctrine\Persistence\ManagerRegistry; | use Doctrine\Persistence\ManagerRegistry; | ||||
use Lc\CaracoleBundle\Model\Product\ProductCategoryInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepository; | |||||
/** | |||||
* @method ProductCategoryInterface|null find($id, $lockMode = null, $lockVersion = null) | |||||
* @method ProductCategoryInterface|null findOneBy(array $criteria, array $orderBy = null) | |||||
* @method ProductCategoryInterface[] findAll() | |||||
* @method ProductCategoryInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) | |||||
*/ | |||||
class ProductCategoryRepository extends ServiceEntityRepository | |||||
class ProductCategoryRepository extends AbstractRepository | |||||
{ | { | ||||
public function __construct(ManagerRegistry $registry) | public function __construct(ManagerRegistry $registry) | ||||
{ | { | ||||
parent::__construct($registry, ProductCategoryInterface::class); | |||||
parent::__construct($registry, ProductCategory::class); | |||||
} | } | ||||
} | } |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Product; | |||||
use Knp\Component\Pager\PaginatorInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||||
class ProductCategoryRepositoryQuery extends AbstractRepositoryQuery implements ProductCategoryRepositoryQueryInterface | |||||
{ | |||||
public function __construct(ProductCategoryRepository $repository, PaginatorInterface $paginator) | |||||
{ | |||||
parent::__construct($repository, 'r', $paginator); | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Product; | |||||
interface ProductCategoryRepositoryQueryInterface{ | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Product; | |||||
class ProductCategoryStore implements ProductCategoryStoreInterface | |||||
{ | |||||
protected ProductCategoryRepositoryQueryInterface $query; | |||||
public function __construct(ProductCategoryRepositoryQueryInterface $query) | |||||
{ | |||||
$this->query = $query; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Product; | |||||
interface ProductCategoryStoreInterface{ | |||||
} |
namespace Lc\CaracoleBundle\Repository\Product; | namespace Lc\CaracoleBundle\Repository\Product; | ||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||||
use App\Entity\Product\ProductFamily; | |||||
use Doctrine\Persistence\ManagerRegistry; | use Doctrine\Persistence\ManagerRegistry; | ||||
use Lc\CaracoleBundle\Model\Product\ProductFamilyInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepository; | |||||
/** | |||||
* @method ProductFamilyInterface|null find($id, $lockMode = null, $lockVersion = null) | |||||
* @method ProductFamilyInterface|null findOneBy(array $criteria, array $orderBy = null) | |||||
* @method ProductFamilyInterface[] findAll() | |||||
* @method ProductFamilyInterface[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) | |||||
*/ | |||||
class ProductFamilyRepository extends ServiceEntityRepository | |||||
class ProductFamilyRepository extends AbstractRepository | |||||
{ | { | ||||
public function __construct(ManagerRegistry $registry) | public function __construct(ManagerRegistry $registry) | ||||
{ | { | ||||
parent::__construct($registry, ProductFamilyInterface::class); | |||||
parent::__construct($registry, ProductFamily::class); | |||||
} | } | ||||
} | } |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Product; | |||||
use Knp\Component\Pager\PaginatorInterface; | |||||
use Lc\SovBundle\Repository\AbstractRepositoryQuery; | |||||
class ProductFamilyRepositoryQuery extends AbstractRepositoryQuery implements ProductFamilyRepositoryQueryInterface | |||||
{ | |||||
public function __construct(ProductFamilyRepository $repository, PaginatorInterface $paginator) | |||||
{ | |||||
parent::__construct($repository, 'r', $paginator); | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Product; | |||||
interface ProductFamilyRepositoryQueryInterface{ | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Product; | |||||
class ProductFamilyStore implements ProductFamilyStoreInterface | |||||
{ | |||||
protected ProductFamilyRepositoryQueryInterface $query; | |||||
public function __construct(ProductFamilyRepositoryQueryInterface $query) | |||||
{ | |||||
$this->query = $query; | |||||
} | |||||
} |
<?php | |||||
namespace Lc\CaracoleBundle\Repository\Product; | |||||
interface ProductFamilyStoreInterface{ | |||||
} |