@@ -12,7 +12,7 @@ use Lc\CaracoleBundle\Resolver\SectionResolver; | |||
use Lc\CaracoleBundle\Definition\SectionSettingDefinitionInterface; | |||
use Lc\SovBundle\Definition\SiteSettingDefinition; | |||
use Lc\SovBundle\Form\Setting\SiteSettingsFormType; | |||
use Lc\SovBundle\Repository\Site\SiteRepositoryInterface; | |||
use Lc\SovBundle\Repository\Site\SiteRepository; | |||
use Lc\SovBundle\Translation\TranslatorAdmin; | |||
use Symfony\Component\HttpFoundation\Request; | |||
use Symfony\Component\Routing\Annotation\Route; | |||
@@ -36,7 +36,7 @@ class SettingAdminController extends SovSettingController | |||
MerchantSettingDefinitionInterface $merchantSettingDefinition, | |||
SectionSettingDefinitionInterface $sectionSettingDefinition, | |||
SiteSettingDefinition $siteSettingDefinition, | |||
SiteRepositoryInterface $siteRepository | |||
SiteRepository $siteRepository | |||
) { | |||
$this->em = $em; | |||
$this->translatorAdmin = $translatorAdmin; |
@@ -8,8 +8,8 @@ use Lc\CaracoleBundle\Factory\Setting\MerchantSettingFactory; | |||
use Lc\CaracoleBundle\Factory\Setting\SectionSettingFactory; | |||
use Lc\CaracoleBundle\Model\Section\SectionInterface; | |||
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\HttpKernel\KernelEvents; | |||
@@ -27,8 +27,8 @@ class SettingEventSubscriber implements EventSubscriberInterface | |||
EntityManagerInterface $em, | |||
MerchantSettingDefinitionInterface $merchantSettingDefinition, | |||
SectionSettingDefinitionInterface $sectionSettingDefinition, | |||
MerchantRepositoryInterface $merchantRepository, | |||
SectionRepositoryInterface $sectionRepository, | |||
MerchantRepository $merchantRepository, | |||
SectionRepository $sectionRepository, | |||
MerchantSettingFactory $merchantSettingFactory, | |||
SectionSettingFactory $sectionSettingFactory | |||
) |
@@ -2,20 +2,14 @@ | |||
namespace Lc\CaracoleBundle\Repository\Address; | |||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||
use App\Entity\Address\Address; | |||
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) | |||
{ | |||
parent::__construct($registry, AddressInterface::class); | |||
parent::__construct($registry, Address::class); | |||
} | |||
} |
@@ -0,0 +1,14 @@ | |||
<?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); | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Address; | |||
interface AddressRepositoryQueryInterface | |||
{ | |||
} |
@@ -0,0 +1,13 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Address; | |||
class AddressStore implements AddressStoreInterface | |||
{ | |||
protected AddressRepositoryQueryInterface $query; | |||
public function __construct(AddressRepositoryQueryInterface $query) | |||
{ | |||
$this->query = $query; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Address; | |||
interface AddressStoreInterface | |||
{ | |||
} |
@@ -4,13 +4,10 @@ namespace Lc\CaracoleBundle\Repository\Config; | |||
use App\Entity\Config\TaxRate; | |||
use Doctrine\Persistence\ManagerRegistry; | |||
use Lc\CaracoleBundle\Repository\RepositoryTrait; | |||
use Lc\SovBundle\Repository\AbstractRepository; | |||
class TaxRateRepository extends AbstractRepository | |||
{ | |||
use RepositoryTrait; | |||
public function __construct(ManagerRegistry $registry) | |||
{ | |||
parent::__construct($registry, TaxRate::class); |
@@ -0,0 +1,14 @@ | |||
<?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); | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Config; | |||
interface TaxRateRepositoryQueryInterface | |||
{ | |||
} |
@@ -0,0 +1,13 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Config; | |||
class TaxRateStore implements TaxRateStoreInterface | |||
{ | |||
protected TaxRateRepositoryQueryInterface $query; | |||
public function __construct(TaxRateRepositoryQueryInterface $query) | |||
{ | |||
$this->query = $query; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Config; | |||
interface TaxRateStoreInterface | |||
{ | |||
} |
@@ -4,16 +4,12 @@ namespace Lc\CaracoleBundle\Repository\Config; | |||
use App\Entity\Config\Unit; | |||
use Doctrine\Persistence\ManagerRegistry; | |||
use Lc\CaracoleBundle\Repository\RepositoryTrait; | |||
use Lc\SovBundle\Repository\AbstractRepository; | |||
class UnitRepository extends AbstractRepository | |||
{ | |||
use RepositoryTrait; | |||
public function __construct(ManagerRegistry $registry) | |||
{ | |||
parent::__construct($registry, Unit::class); | |||
} | |||
} |
@@ -0,0 +1,14 @@ | |||
<?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); | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Config; | |||
interface UnitRepositoryQueryInterface | |||
{ | |||
} |
@@ -0,0 +1,13 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Config; | |||
class UnitStore implements UnitStoreInterface | |||
{ | |||
protected UnitRepositoryQueryInterface $query; | |||
public function __construct(UnitRepositoryQueryInterface $query) | |||
{ | |||
$this->query = $query; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Config; | |||
interface UnitStoreInterface | |||
{ | |||
} |
@@ -1,21 +0,0 @@ | |||
<?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); | |||
} | |||
} |
@@ -6,7 +6,7 @@ use App\Entity\Credit\CreditHistory; | |||
use Doctrine\Persistence\ManagerRegistry; | |||
use Lc\SovBundle\Repository\AbstractRepository; | |||
class CreditHistoryRepository extends AbstractRepository implements CreditHistoryRepositoryInterface | |||
class CreditHistoryRepository extends AbstractRepository | |||
{ | |||
public function __construct(ManagerRegistry $registry) | |||
{ |
@@ -0,0 +1,14 @@ | |||
<?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); | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Credit; | |||
interface CreditHistoryRepositoryQueryInterface | |||
{ | |||
} |
@@ -0,0 +1,13 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Credit; | |||
class CreditHistoryStore implements CreditHistoryStoreInterface | |||
{ | |||
protected CreditHistoryRepositoryQueryInterface $query; | |||
public function __construct(CreditHistoryRepositoryQueryInterface $query) | |||
{ | |||
$this->query = $query; | |||
} | |||
} |
@@ -2,8 +2,7 @@ | |||
namespace Lc\CaracoleBundle\Repository\Credit; | |||
interface CreditHistoryRepositoryInterface | |||
interface CreditHistoryStoreInterface | |||
{ | |||
} | |||
} |
@@ -2,20 +2,14 @@ | |||
namespace Lc\CaracoleBundle\Repository\File; | |||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||
use App\Entity\File\Document; | |||
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) | |||
{ | |||
parent::__construct($registry, DocumentInterface::class); | |||
parent::__construct($registry, Document::class); | |||
} | |||
} |
@@ -0,0 +1,14 @@ | |||
<?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); | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\File; | |||
interface DocumentRepositoryQueryInterface | |||
{ | |||
} |
@@ -0,0 +1,13 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\File; | |||
class DocumentStore implements DocumentStoreInterface | |||
{ | |||
protected DocumentRepositoryQueryInterface $query; | |||
public function __construct(DocumentRepositoryQueryInterface $query) | |||
{ | |||
$this->query = $query; | |||
} | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\File; | |||
interface DocumentStoreInterface | |||
{ | |||
} |
@@ -1,21 +0,0 @@ | |||
<?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); | |||
} | |||
} |
@@ -6,7 +6,7 @@ use App\Entity\Merchant\Merchant; | |||
use Doctrine\Persistence\ManagerRegistry; | |||
use Lc\SovBundle\Repository\AbstractRepository; | |||
class MerchantRepository extends AbstractRepository implements MerchantRepositoryInterface | |||
class MerchantRepository extends AbstractRepository | |||
{ | |||
public function __construct(ManagerRegistry $registry) | |||
{ |
@@ -3,14 +3,11 @@ | |||
namespace Lc\CaracoleBundle\Repository\Merchant; | |||
use Knp\Component\Pager\PaginatorInterface; | |||
use Lc\CaracoleBundle\Repository\RepositoryMerchantTrait; | |||
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); | |||
} |
@@ -0,0 +1,8 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Merchant; | |||
interface MerchantRepositoryQueryInterface | |||
{ | |||
} |
@@ -0,0 +1,13 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Merchant; | |||
class MerchantStore implements MerchantStoreInterface | |||
{ | |||
protected MerchantRepositoryQueryInterface $query; | |||
public function __construct(MerchantRepositoryQueryInterface $query) | |||
{ | |||
$this->query = $query; | |||
} | |||
} |
@@ -2,7 +2,7 @@ | |||
namespace Lc\CaracoleBundle\Repository\Merchant; | |||
interface MerchantRepositoryInterface | |||
interface MerchantStoreInterface | |||
{ | |||
} |
@@ -2,20 +2,14 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||
use App\Entity\Order\OrderPayment; | |||
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) | |||
{ | |||
parent::__construct($registry, OrderPaymentInterface::class); | |||
parent::__construct($registry, OrderPayment::class); | |||
} | |||
} |
@@ -0,0 +1,14 @@ | |||
<?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); | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderPaymentRepositoryQueryInterface{ | |||
} |
@@ -0,0 +1,13 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderPaymentStore implements OrderPaymentStoreInterface | |||
{ | |||
protected OrderPaymentRepositoryQueryInterface $query; | |||
public function __construct(OrderPaymentRepositoryQueryInterface $query) | |||
{ | |||
$this->query = $query; | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderPaymentStoreInterface{ | |||
} |
@@ -2,20 +2,14 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||
use App\Entity\Order\OrderProductReductionCatalog; | |||
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) | |||
{ | |||
parent::__construct($registry, OrderProductReductionCatalogInterface::class); | |||
parent::__construct($registry, OrderProductReductionCatalog::class); | |||
} | |||
} |
@@ -0,0 +1,14 @@ | |||
<?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); | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderProductReductionCatalogRepositoryQueryInterface{ | |||
} |
@@ -0,0 +1,13 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderProductReductionCatalogStore implements OrderProductReductionCatalogStoreInterface | |||
{ | |||
protected OrderProductReductionCatalogRepositoryQueryInterface $query; | |||
public function __construct(OrderProductReductionCatalogRepositoryQueryInterface $query) | |||
{ | |||
$this->query = $query; | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderProductReductionCatalogStoreInterface{ | |||
} |
@@ -2,20 +2,14 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||
use App\Entity\Order\OrderProductRefund; | |||
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) | |||
{ | |||
parent::__construct($registry, OrderRefundInterface::class); | |||
parent::__construct($registry, OrderProductRefund::class); | |||
} | |||
} |
@@ -0,0 +1,14 @@ | |||
<?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); | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderProductRefundRepositoryQueryInterface{ | |||
} |
@@ -0,0 +1,13 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderProductRefundStore implements OrderProductRefundStoreInterface | |||
{ | |||
protected OrderProductRefundRepositoryQueryInterface $query; | |||
public function __construct(OrderProductRefundRepositoryQueryInterface $query) | |||
{ | |||
$this->query = $query; | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderProductRefundStoreInterface{ | |||
} |
@@ -2,20 +2,14 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||
use App\Entity\Order\OrderProduct; | |||
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) | |||
{ | |||
parent::__construct($registry, OrderProductInterface::class); | |||
parent::__construct($registry, OrderProduct::class); | |||
} | |||
} |
@@ -0,0 +1,14 @@ | |||
<?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); | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderProductRepositoryQueryInterface{ | |||
} |
@@ -0,0 +1,13 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderProductStore implements OrderProductStoreInterface | |||
{ | |||
protected OrderProductRepositoryQueryInterface $query; | |||
public function __construct(OrderProductRepositoryQueryInterface $query) | |||
{ | |||
$this->query = $query; | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderProductStoreInterface{ | |||
} |
@@ -2,20 +2,14 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||
use App\Entity\Order\OrderReductionCart; | |||
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) | |||
{ | |||
parent::__construct($registry, OrderReductionCartInterface::class); | |||
parent::__construct($registry, OrderReductionCart::class); | |||
} | |||
} |
@@ -0,0 +1,14 @@ | |||
<?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); | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderReductionCartRepositoryQueryInterface{ | |||
} |
@@ -0,0 +1,13 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderReductionCartStore implements OrderReductionCartStoreInterface | |||
{ | |||
protected OrderReductionCartRepositoryQueryInterface $query; | |||
public function __construct(OrderReductionCartRepositoryQueryInterface $query) | |||
{ | |||
$this->query = $query; | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderReductionCartStoreInterface{ | |||
} |
@@ -2,20 +2,14 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||
use App\Entity\Order\OrderReductionCredit; | |||
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) | |||
{ | |||
parent::__construct($registry, OrderReductionCreditInterface::class); | |||
parent::__construct($registry, OrderReductionCredit::class); | |||
} | |||
} |
@@ -0,0 +1,14 @@ | |||
<?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); | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderReductionCreditRepositoryQueryInterface{ | |||
} |
@@ -0,0 +1,13 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderReductionCreditStore implements OrderReductionCreditStoreInterface | |||
{ | |||
protected OrderReductionCreditRepositoryQueryInterface $query; | |||
public function __construct(OrderReductionCreditRepositoryQueryInterface $query) | |||
{ | |||
$this->query = $query; | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderReductionCreditStoreInterface{ | |||
} |
@@ -2,20 +2,14 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||
use App\Entity\Order\OrderRefund; | |||
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) | |||
{ | |||
parent::__construct($registry, OrderRefundInterface::class); | |||
parent::__construct($registry, OrderRefund::class); | |||
} | |||
} |
@@ -0,0 +1,14 @@ | |||
<?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); | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderRefundRepositoryQueryInterface{ | |||
} |
@@ -0,0 +1,13 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderRefundStore implements OrderRefundStoreInterface | |||
{ | |||
protected OrderRefundRepositoryQueryInterface $query; | |||
public function __construct(OrderRefundRepositoryQueryInterface $query) | |||
{ | |||
$this->query = $query; | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderRefundStoreInterface{ | |||
} |
@@ -2,20 +2,14 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||
use App\Entity\Order\OrderShop; | |||
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) | |||
{ | |||
parent::__construct($registry, OrderShopInterface::class); | |||
parent::__construct($registry, OrderShop::class); | |||
} | |||
} |
@@ -0,0 +1,14 @@ | |||
<?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); | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderShopRepositoryQueryInterface{ | |||
} |
@@ -0,0 +1,13 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderShopStore implements OrderShopStoreInterface | |||
{ | |||
protected OrderShopRepositoryQueryInterface $query; | |||
public function __construct(OrderShopRepositoryQueryInterface $query) | |||
{ | |||
$this->query = $query; | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderShopStoreInterface{ | |||
} |
@@ -2,20 +2,14 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||
use App\Entity\Order\OrderStatusHistory; | |||
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) | |||
{ | |||
parent::__construct($registry, OrderStatusHistoryInterface::class); | |||
parent::__construct($registry, OrderStatusHistory::class); | |||
} | |||
} |
@@ -0,0 +1,14 @@ | |||
<?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); | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderStatusHistoryRepositoryQueryInterface{ | |||
} |
@@ -0,0 +1,13 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderStatusHistoryStore implements OrderStatusHistoryStoreInterface | |||
{ | |||
protected OrderStatusHistoryRepositoryQueryInterface $query; | |||
public function __construct(OrderStatusHistoryRepositoryQueryInterface $query) | |||
{ | |||
$this->query = $query; | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderStatusHistoryStoreInterface{ | |||
} |
@@ -2,20 +2,14 @@ | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||
use App\Entity\Order\OrderStatus; | |||
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) | |||
{ | |||
parent::__construct($registry, OrderStatusInterface::class); | |||
parent::__construct($registry, OrderStatus::class); | |||
} | |||
} |
@@ -0,0 +1,14 @@ | |||
<?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); | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderStatusRepositoryQueryInterface{ | |||
} |
@@ -0,0 +1,13 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
class OrderStatusStore implements OrderStatusStoreInterface | |||
{ | |||
protected OrderStatusRepositoryQueryInterface $query; | |||
public function __construct(OrderStatusRepositoryQueryInterface $query) | |||
{ | |||
$this->query = $query; | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Order; | |||
interface OrderStatusStoreInterface{ | |||
} |
@@ -1,21 +0,0 @@ | |||
<?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); | |||
} | |||
} |
@@ -4,13 +4,10 @@ namespace Lc\CaracoleBundle\Repository\PointSale; | |||
use App\Entity\PointSale\PointSale; | |||
use Doctrine\Persistence\ManagerRegistry; | |||
use Lc\CaracoleBundle\Repository\RepositoryTrait; | |||
use Lc\SovBundle\Repository\AbstractRepository; | |||
class PointSaleRepository extends AbstractRepository implements PointSaleRepositoryInterface | |||
class PointSaleRepository extends AbstractRepository | |||
{ | |||
use RepositoryTrait; | |||
public function __construct(ManagerRegistry $registry) | |||
{ | |||
parent::__construct($registry, PointSale::class); |
@@ -0,0 +1,14 @@ | |||
<?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); | |||
} | |||
} |
@@ -2,7 +2,6 @@ | |||
namespace Lc\CaracoleBundle\Repository\PointSale; | |||
interface PointSaleRepositoryInterface | |||
{ | |||
interface PointSaleRepositoryQueryInterface{ | |||
} |
@@ -0,0 +1,13 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\PointSale; | |||
class PointSaleStore implements PointSaleStoreInterface | |||
{ | |||
protected PointSaleRepositoryQueryInterface $query; | |||
public function __construct(PointSaleRepositoryQueryInterface $query) | |||
{ | |||
$this->query = $query; | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\PointSale; | |||
interface PointSaleStoreInterface{ | |||
} |
@@ -2,20 +2,14 @@ | |||
namespace Lc\CaracoleBundle\Repository\Product; | |||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||
use App\Entity\Product\ProductCategory; | |||
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) | |||
{ | |||
parent::__construct($registry, ProductCategoryInterface::class); | |||
parent::__construct($registry, ProductCategory::class); | |||
} | |||
} |
@@ -0,0 +1,14 @@ | |||
<?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); | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Product; | |||
interface ProductCategoryRepositoryQueryInterface{ | |||
} |
@@ -0,0 +1,13 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Product; | |||
class ProductCategoryStore implements ProductCategoryStoreInterface | |||
{ | |||
protected ProductCategoryRepositoryQueryInterface $query; | |||
public function __construct(ProductCategoryRepositoryQueryInterface $query) | |||
{ | |||
$this->query = $query; | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Product; | |||
interface ProductCategoryStoreInterface{ | |||
} |
@@ -2,20 +2,14 @@ | |||
namespace Lc\CaracoleBundle\Repository\Product; | |||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |||
use App\Entity\Product\ProductFamily; | |||
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) | |||
{ | |||
parent::__construct($registry, ProductFamilyInterface::class); | |||
parent::__construct($registry, ProductFamily::class); | |||
} | |||
} |
@@ -0,0 +1,14 @@ | |||
<?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); | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Product; | |||
interface ProductFamilyRepositoryQueryInterface{ | |||
} |
@@ -0,0 +1,13 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Product; | |||
class ProductFamilyStore implements ProductFamilyStoreInterface | |||
{ | |||
protected ProductFamilyRepositoryQueryInterface $query; | |||
public function __construct(ProductFamilyRepositoryQueryInterface $query) | |||
{ | |||
$this->query = $query; | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
<?php | |||
namespace Lc\CaracoleBundle\Repository\Product; | |||
interface ProductFamilyStoreInterface{ | |||
} |