Browse Source

Merge branch 'develop' of https://gitea.laclic.fr/Laclic/CaracoleSkeleton into develop

master
Fab 3 years ago
parent
commit
84edfc226c
33 changed files with 1218 additions and 1 deletions
  1. +1
    -1
      config/packages/security.yaml
  2. +26
    -0
      src/Entity/Common/Unit.php
  3. +26
    -0
      src/Entity/Credit/CreditConfig.php
  4. +26
    -0
      src/Entity/Credit/CreditHistory.php
  5. +26
    -0
      src/Entity/Merchant/Merchant.php
  6. +26
    -0
      src/Entity/Merchant/MerchantConfig.php
  7. +26
    -0
      src/Entity/Newsletter/Newsletter.php
  8. +26
    -0
      src/Entity/Order/OrderPayment.php
  9. +26
    -0
      src/Entity/Order/OrderProduct.php
  10. +27
    -0
      src/Entity/Order/OrderProductReductionCatalog.php
  11. +26
    -0
      src/Entity/Order/OrderProductRefund.php
  12. +26
    -0
      src/Entity/Order/OrderReductionCart.php
  13. +26
    -0
      src/Entity/Order/OrderReductionCredit.php
  14. +26
    -0
      src/Entity/Order/OrderRefund.php
  15. +26
    -0
      src/Entity/Order/OrderShop.php
  16. +26
    -0
      src/Entity/Order/OrderStatus.php
  17. +26
    -0
      src/Entity/Order/OrderStatusHistory.php
  18. +50
    -0
      src/Repository/CreditConfigRepository.php
  19. +50
    -0
      src/Repository/CreditHistoryRepository.php
  20. +50
    -0
      src/Repository/MerchantConfigRepository.php
  21. +50
    -0
      src/Repository/MerchantRepository.php
  22. +50
    -0
      src/Repository/NewsletterRepository.php
  23. +50
    -0
      src/Repository/OrderPaymentRepository.php
  24. +50
    -0
      src/Repository/OrderProductReductionCatalogRepository.php
  25. +50
    -0
      src/Repository/OrderProductRefundRepository.php
  26. +50
    -0
      src/Repository/OrderProductRepository.php
  27. +50
    -0
      src/Repository/OrderReductionCartRepository.php
  28. +50
    -0
      src/Repository/OrderReductionCreditRepository.php
  29. +50
    -0
      src/Repository/OrderRefundRepository.php
  30. +50
    -0
      src/Repository/OrderShopRepository.php
  31. +50
    -0
      src/Repository/OrderStatusHistoryRepository.php
  32. +50
    -0
      src/Repository/OrderStatusRepository.php
  33. +50
    -0
      src/Repository/UnitRepository.php

+ 1
- 1
config/packages/security.yaml View File

@@ -1,6 +1,6 @@
security:
encoders:
App\Entity\User:
App\Entity\User\User:
algorithm: auto

# https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers

+ 26
- 0
src/Entity/Common/Unit.php View File

@@ -0,0 +1,26 @@
<?php

namespace App\Entity\Common;

use App\Repository\UnitRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\CaracoleBundle\Model\Common\UnitInterface;
use Lc\CaracoleBundle\Model\Common\UnitModel;

/**
* @ORM\Entity(repositoryClass=UnitRepository::class)
*/
class Unit extends UnitModel implements UnitInterface
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;

public function getId(): ?int
{
return $this->id;
}
}

+ 26
- 0
src/Entity/Credit/CreditConfig.php View File

@@ -0,0 +1,26 @@
<?php

namespace App\Entity\Credit;

use App\Repository\CreditConfigRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\CaracoleBundle\Model\Credit\CreditConfigInterface;
use Lc\CaracoleBundle\Model\Credit\CreditConfigModel;

/**
* @ORM\Entity(repositoryClass=CreditConfigRepository::class)
*/
class CreditConfig extends CreditConfigModel implements CreditConfigInterface
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;

public function getId(): ?int
{
return $this->id;
}
}

+ 26
- 0
src/Entity/Credit/CreditHistory.php View File

@@ -0,0 +1,26 @@
<?php

namespace App\Entity\Credit;

use App\Repository\CreditHistoryRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\CaracoleBundle\Model\Credit\CreditHistoryInterface;
use Lc\CaracoleBundle\Model\Credit\CreditHistoryModel;

/**
* @ORM\Entity(repositoryClass=CreditHistoryRepository::class)
*/
class CreditHistory extends CreditHistoryModel implements CreditHistoryInterface
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;

public function getId(): ?int
{
return $this->id;
}
}

+ 26
- 0
src/Entity/Merchant/Merchant.php View File

@@ -0,0 +1,26 @@
<?php

namespace App\Entity\Merchant;

use App\Repository\MerchantRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
use Lc\CaracoleBundle\Model\Merchant\MerchantModel;

/**
* @ORM\Entity(repositoryClass=MerchantRepository::class)
*/
class Merchant extends MerchantModel implements MerchantInterface
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;

public function getId(): ?int
{
return $this->id;
}
}

+ 26
- 0
src/Entity/Merchant/MerchantConfig.php View File

@@ -0,0 +1,26 @@
<?php

namespace App\Entity\Merchant;

use App\Repository\MerchantConfigRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
use Lc\CaracoleBundle\Model\Merchant\MerchantModel;

/**
* @ORM\Entity(repositoryClass=MerchantConfigRepository::class)
*/
class MerchantConfig extends MerchantModel implements MerchantInterface
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;

public function getId(): ?int
{
return $this->id;
}
}

+ 26
- 0
src/Entity/Newsletter/Newsletter.php View File

@@ -0,0 +1,26 @@
<?php

namespace App\Entity\Newsletter;

use App\Repository\NewsletterRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\CaracoleBundle\Model\Newsletter\NewsletterInterface;
use Lc\CaracoleBundle\Model\Newsletter\NewsletterModel;

/**
* @ORM\Entity(repositoryClass=NewsletterRepository::class)
*/
class Newsletter extends NewsletterModel implements NewsletterInterface
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;

public function getId(): ?int
{
return $this->id;
}
}

+ 26
- 0
src/Entity/Order/OrderPayment.php View File

@@ -0,0 +1,26 @@
<?php

namespace App\Entity\Order;

use App\Repository\OrderPaymentRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\CaracoleBundle\Model\Order\OrderPaymentInterface;
use Lc\CaracoleBundle\Model\Order\OrderPaymentModel;

/**
* @ORM\Entity(repositoryClass=OrderPaymentRepository::class)
*/
class OrderPayment extends OrderPaymentModel implements OrderPaymentInterface
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;

public function getId(): ?int
{
return $this->id;
}
}

+ 26
- 0
src/Entity/Order/OrderProduct.php View File

@@ -0,0 +1,26 @@
<?php

namespace App\Entity\Order;

use App\Repository\OrderProductRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\CaracoleBundle\Model\Order\OrderProductInterface;
use Lc\CaracoleBundle\Model\Order\OrderProductModel;

/**
* @ORM\Entity(repositoryClass=OrderProductRepository::class)
*/
class OrderProduct extends OrderProductModel implements OrderProductInterface
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;

public function getId(): ?int
{
return $this->id;
}
}

+ 27
- 0
src/Entity/Order/OrderProductReductionCatalog.php View File

@@ -0,0 +1,27 @@
<?php

namespace App\Entity\Order;

use App\Repository\OrderProductReductionCatalogRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\CaracoleBundle\Model\Order\OrderProductReductionCatalogInterface;
use Lc\CaracoleBundle\Model\Order\OrderProductReductionCatalogModel;

/**
* @ORM\Entity(repositoryClass=OrderProductReductionCatalogRepository::class)
*/
class OrderProductReductionCatalog extends OrderProductReductionCatalogModel implements
OrderProductReductionCatalogInterface
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;

public function getId(): ?int
{
return $this->id;
}
}

+ 26
- 0
src/Entity/Order/OrderProductRefund.php View File

@@ -0,0 +1,26 @@
<?php

namespace App\Entity\Order;

use App\Repository\OrderProductRefundRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\CaracoleBundle\Model\Order\OrderProductRefundInterface;
use Lc\CaracoleBundle\Model\Order\OrderProductRefundModel;

/**
* @ORM\Entity(repositoryClass=OrderProductRefundRepository::class)
*/
class OrderProductRefund extends OrderProductRefundModel implements OrderProductRefundInterface
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;

public function getId(): ?int
{
return $this->id;
}
}

+ 26
- 0
src/Entity/Order/OrderReductionCart.php View File

@@ -0,0 +1,26 @@
<?php

namespace App\Entity\Order;

use App\Repository\OrderReductionCartRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\CaracoleBundle\Model\Order\OrderReductionCartInterface;
use Lc\CaracoleBundle\Model\Order\OrderReductionCartModel;

/**
* @ORM\Entity(repositoryClass=OrderReductionCartRepository::class)
*/
class OrderReductionCart extends OrderReductionCartModel implements OrderReductionCartInterface
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;

public function getId(): ?int
{
return $this->id;
}
}

+ 26
- 0
src/Entity/Order/OrderReductionCredit.php View File

@@ -0,0 +1,26 @@
<?php

namespace App\Entity\Order;

use App\Repository\OrderReductionCreditRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\CaracoleBundle\Model\Order\OrderReductionCreditInterface;
use Lc\CaracoleBundle\Model\Order\OrderReductionCreditModel;

/**
* @ORM\Entity(repositoryClass=OrderReductionCreditRepository::class)
*/
class OrderReductionCredit extends OrderReductionCreditModel implements OrderReductionCreditInterface
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;

public function getId(): ?int
{
return $this->id;
}
}

+ 26
- 0
src/Entity/Order/OrderRefund.php View File

@@ -0,0 +1,26 @@
<?php

namespace App\Entity\Order;

use App\Repository\OrderRefundRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\CaracoleBundle\Model\Order\OrderRefundInterface;
use Lc\CaracoleBundle\Model\Order\OrderRefundModel;

/**
* @ORM\Entity(repositoryClass=OrderRefundRepository::class)
*/
class OrderRefund extends OrderRefundModel implements OrderRefundInterface
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;

public function getId(): ?int
{
return $this->id;
}
}

+ 26
- 0
src/Entity/Order/OrderShop.php View File

@@ -0,0 +1,26 @@
<?php

namespace App\Entity\Order;

use App\Repository\OrderShopRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\CaracoleBundle\Model\Order\OrderShopInterface;
use Lc\CaracoleBundle\Model\Order\OrderShopModel;

/**
* @ORM\Entity(repositoryClass=OrderShopRepository::class)
*/
class OrderShop extends OrderShopModel implements OrderShopInterface
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;

public function getId(): ?int
{
return $this->id;
}
}

+ 26
- 0
src/Entity/Order/OrderStatus.php View File

@@ -0,0 +1,26 @@
<?php

namespace App\Entity\Order;

use App\Repository\OrderStatusRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\CaracoleBundle\Model\Order\OrderStatusInterface;
use Lc\CaracoleBundle\Model\Order\OrderStatusModel;

/**
* @ORM\Entity(repositoryClass=OrderStatusRepository::class)
*/
class OrderStatus extends OrderStatusModel implements OrderStatusInterface
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;

public function getId(): ?int
{
return $this->id;
}
}

+ 26
- 0
src/Entity/Order/OrderStatusHistory.php View File

@@ -0,0 +1,26 @@
<?php

namespace App\Entity\Order;

use App\Repository\OrderStatusHistoryRepository;
use Doctrine\ORM\Mapping as ORM;
use Lc\CaracoleBundle\Model\Order\OrderStatusHistoryInterface;
use Lc\CaracoleBundle\Model\Order\OrderStatusHistoryModel;

/**
* @ORM\Entity(repositoryClass=OrderStatusHistoryRepository::class)
*/
class OrderStatusHistory extends OrderStatusHistoryModel implements OrderStatusHistoryInterface
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;

public function getId(): ?int
{
return $this->id;
}
}

+ 50
- 0
src/Repository/CreditConfigRepository.php View File

@@ -0,0 +1,50 @@
<?php

namespace App\Repository;

use App\Entity\CreditConfig;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;

/**
* @method CreditConfig|null find($id, $lockMode = null, $lockVersion = null)
* @method CreditConfig|null findOneBy(array $criteria, array $orderBy = null)
* @method CreditConfig[] findAll()
* @method CreditConfig[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class CreditConfigRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, CreditConfig::class);
}

// /**
// * @return CreditConfig[] Returns an array of CreditConfig objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('c')
->andWhere('c.exampleField = :val')
->setParameter('val', $value)
->orderBy('c.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/

/*
public function findOneBySomeField($value): ?CreditConfig
{
return $this->createQueryBuilder('c')
->andWhere('c.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}

+ 50
- 0
src/Repository/CreditHistoryRepository.php View File

@@ -0,0 +1,50 @@
<?php

namespace App\Repository;

use App\Entity\CreditHistory;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;

/**
* @method CreditHistory|null find($id, $lockMode = null, $lockVersion = null)
* @method CreditHistory|null findOneBy(array $criteria, array $orderBy = null)
* @method CreditHistory[] findAll()
* @method CreditHistory[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class CreditHistoryRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, CreditHistory::class);
}

// /**
// * @return CreditHistory[] Returns an array of CreditHistory objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('c')
->andWhere('c.exampleField = :val')
->setParameter('val', $value)
->orderBy('c.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/

/*
public function findOneBySomeField($value): ?CreditHistory
{
return $this->createQueryBuilder('c')
->andWhere('c.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}

+ 50
- 0
src/Repository/MerchantConfigRepository.php View File

@@ -0,0 +1,50 @@
<?php

namespace App\Repository;

use App\Entity\MerchantConfig;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;

/**
* @method MerchantConfig|null find($id, $lockMode = null, $lockVersion = null)
* @method MerchantConfig|null findOneBy(array $criteria, array $orderBy = null)
* @method MerchantConfig[] findAll()
* @method MerchantConfig[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class MerchantConfigRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, MerchantConfig::class);
}

// /**
// * @return MerchantConfig[] Returns an array of MerchantConfig objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('m')
->andWhere('m.exampleField = :val')
->setParameter('val', $value)
->orderBy('m.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/

/*
public function findOneBySomeField($value): ?MerchantConfig
{
return $this->createQueryBuilder('m')
->andWhere('m.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}

+ 50
- 0
src/Repository/MerchantRepository.php View File

@@ -0,0 +1,50 @@
<?php

namespace App\Repository;

use App\Entity\Merchant;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;

/**
* @method Merchant|null find($id, $lockMode = null, $lockVersion = null)
* @method Merchant|null findOneBy(array $criteria, array $orderBy = null)
* @method Merchant[] findAll()
* @method Merchant[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class MerchantRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, Merchant::class);
}

// /**
// * @return Merchant[] Returns an array of Merchant objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('m')
->andWhere('m.exampleField = :val')
->setParameter('val', $value)
->orderBy('m.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/

/*
public function findOneBySomeField($value): ?Merchant
{
return $this->createQueryBuilder('m')
->andWhere('m.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}

+ 50
- 0
src/Repository/NewsletterRepository.php View File

@@ -0,0 +1,50 @@
<?php

namespace App\Repository;

use App\Entity\Newsletter;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;

/**
* @method Newsletter|null find($id, $lockMode = null, $lockVersion = null)
* @method Newsletter|null findOneBy(array $criteria, array $orderBy = null)
* @method Newsletter[] findAll()
* @method Newsletter[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class NewsletterRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, Newsletter::class);
}

// /**
// * @return Newsletter[] Returns an array of Newsletter objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('n')
->andWhere('n.exampleField = :val')
->setParameter('val', $value)
->orderBy('n.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/

/*
public function findOneBySomeField($value): ?Newsletter
{
return $this->createQueryBuilder('n')
->andWhere('n.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}

+ 50
- 0
src/Repository/OrderPaymentRepository.php View File

@@ -0,0 +1,50 @@
<?php

namespace App\Repository;

use App\Entity\OrderPayment;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;

/**
* @method OrderPayment|null find($id, $lockMode = null, $lockVersion = null)
* @method OrderPayment|null findOneBy(array $criteria, array $orderBy = null)
* @method OrderPayment[] findAll()
* @method OrderPayment[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class OrderPaymentRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, OrderPayment::class);
}

// /**
// * @return OrderPayment[] Returns an array of OrderPayment objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('o')
->andWhere('o.exampleField = :val')
->setParameter('val', $value)
->orderBy('o.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/

/*
public function findOneBySomeField($value): ?OrderPayment
{
return $this->createQueryBuilder('o')
->andWhere('o.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}

+ 50
- 0
src/Repository/OrderProductReductionCatalogRepository.php View File

@@ -0,0 +1,50 @@
<?php

namespace App\Repository;

use App\Entity\OrderProductReductionCatalog;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;

/**
* @method OrderProductReductionCatalog|null find($id, $lockMode = null, $lockVersion = null)
* @method OrderProductReductionCatalog|null findOneBy(array $criteria, array $orderBy = null)
* @method OrderProductReductionCatalog[] findAll()
* @method OrderProductReductionCatalog[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class OrderProductReductionCatalogRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, OrderProductReductionCatalog::class);
}

// /**
// * @return OrderProductReductionCatalog[] Returns an array of OrderProductReductionCatalog objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('o')
->andWhere('o.exampleField = :val')
->setParameter('val', $value)
->orderBy('o.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/

/*
public function findOneBySomeField($value): ?OrderProductReductionCatalog
{
return $this->createQueryBuilder('o')
->andWhere('o.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}

+ 50
- 0
src/Repository/OrderProductRefundRepository.php View File

@@ -0,0 +1,50 @@
<?php

namespace App\Repository;

use App\Entity\OrderProductRefund;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;

/**
* @method OrderProductRefund|null find($id, $lockMode = null, $lockVersion = null)
* @method OrderProductRefund|null findOneBy(array $criteria, array $orderBy = null)
* @method OrderProductRefund[] findAll()
* @method OrderProductRefund[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class OrderProductRefundRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, OrderProductRefund::class);
}

// /**
// * @return OrderProductRefund[] Returns an array of OrderProductRefund objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('o')
->andWhere('o.exampleField = :val')
->setParameter('val', $value)
->orderBy('o.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/

/*
public function findOneBySomeField($value): ?OrderProductRefund
{
return $this->createQueryBuilder('o')
->andWhere('o.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}

+ 50
- 0
src/Repository/OrderProductRepository.php View File

@@ -0,0 +1,50 @@
<?php

namespace App\Repository;

use App\Entity\OrderProduct;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;

/**
* @method OrderProduct|null find($id, $lockMode = null, $lockVersion = null)
* @method OrderProduct|null findOneBy(array $criteria, array $orderBy = null)
* @method OrderProduct[] findAll()
* @method OrderProduct[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class OrderProductRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, OrderProduct::class);
}

// /**
// * @return OrderProduct[] Returns an array of OrderProduct objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('o')
->andWhere('o.exampleField = :val')
->setParameter('val', $value)
->orderBy('o.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/

/*
public function findOneBySomeField($value): ?OrderProduct
{
return $this->createQueryBuilder('o')
->andWhere('o.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}

+ 50
- 0
src/Repository/OrderReductionCartRepository.php View File

@@ -0,0 +1,50 @@
<?php

namespace App\Repository;

use App\Entity\OrderReductionCart;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;

/**
* @method OrderReductionCart|null find($id, $lockMode = null, $lockVersion = null)
* @method OrderReductionCart|null findOneBy(array $criteria, array $orderBy = null)
* @method OrderReductionCart[] findAll()
* @method OrderReductionCart[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class OrderReductionCartRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, OrderReductionCart::class);
}

// /**
// * @return OrderReductionCart[] Returns an array of OrderReductionCart objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('o')
->andWhere('o.exampleField = :val')
->setParameter('val', $value)
->orderBy('o.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/

/*
public function findOneBySomeField($value): ?OrderReductionCart
{
return $this->createQueryBuilder('o')
->andWhere('o.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}

+ 50
- 0
src/Repository/OrderReductionCreditRepository.php View File

@@ -0,0 +1,50 @@
<?php

namespace App\Repository;

use App\Entity\OrderReductionCredit;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;

/**
* @method OrderReductionCredit|null find($id, $lockMode = null, $lockVersion = null)
* @method OrderReductionCredit|null findOneBy(array $criteria, array $orderBy = null)
* @method OrderReductionCredit[] findAll()
* @method OrderReductionCredit[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class OrderReductionCreditRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, OrderReductionCredit::class);
}

// /**
// * @return OrderReductionCredit[] Returns an array of OrderReductionCredit objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('o')
->andWhere('o.exampleField = :val')
->setParameter('val', $value)
->orderBy('o.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/

/*
public function findOneBySomeField($value): ?OrderReductionCredit
{
return $this->createQueryBuilder('o')
->andWhere('o.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}

+ 50
- 0
src/Repository/OrderRefundRepository.php View File

@@ -0,0 +1,50 @@
<?php

namespace App\Repository;

use App\Entity\OrderRefund;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;

/**
* @method OrderRefund|null find($id, $lockMode = null, $lockVersion = null)
* @method OrderRefund|null findOneBy(array $criteria, array $orderBy = null)
* @method OrderRefund[] findAll()
* @method OrderRefund[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class OrderRefundRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, OrderRefund::class);
}

// /**
// * @return OrderRefund[] Returns an array of OrderRefund objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('o')
->andWhere('o.exampleField = :val')
->setParameter('val', $value)
->orderBy('o.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/

/*
public function findOneBySomeField($value): ?OrderRefund
{
return $this->createQueryBuilder('o')
->andWhere('o.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}

+ 50
- 0
src/Repository/OrderShopRepository.php View File

@@ -0,0 +1,50 @@
<?php

namespace App\Repository;

use App\Entity\OrderShop;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;

/**
* @method OrderShop|null find($id, $lockMode = null, $lockVersion = null)
* @method OrderShop|null findOneBy(array $criteria, array $orderBy = null)
* @method OrderShop[] findAll()
* @method OrderShop[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class OrderShopRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, OrderShop::class);
}

// /**
// * @return OrderShop[] Returns an array of OrderShop objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('o')
->andWhere('o.exampleField = :val')
->setParameter('val', $value)
->orderBy('o.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/

/*
public function findOneBySomeField($value): ?OrderShop
{
return $this->createQueryBuilder('o')
->andWhere('o.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}

+ 50
- 0
src/Repository/OrderStatusHistoryRepository.php View File

@@ -0,0 +1,50 @@
<?php

namespace App\Repository;

use App\Entity\OrderStatusHistory;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;

/**
* @method OrderStatusHistory|null find($id, $lockMode = null, $lockVersion = null)
* @method OrderStatusHistory|null findOneBy(array $criteria, array $orderBy = null)
* @method OrderStatusHistory[] findAll()
* @method OrderStatusHistory[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class OrderStatusHistoryRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, OrderStatusHistory::class);
}

// /**
// * @return OrderStatusHistory[] Returns an array of OrderStatusHistory objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('o')
->andWhere('o.exampleField = :val')
->setParameter('val', $value)
->orderBy('o.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/

/*
public function findOneBySomeField($value): ?OrderStatusHistory
{
return $this->createQueryBuilder('o')
->andWhere('o.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}

+ 50
- 0
src/Repository/OrderStatusRepository.php View File

@@ -0,0 +1,50 @@
<?php

namespace App\Repository;

use App\Entity\OrderStatus;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;

/**
* @method OrderStatus|null find($id, $lockMode = null, $lockVersion = null)
* @method OrderStatus|null findOneBy(array $criteria, array $orderBy = null)
* @method OrderStatus[] findAll()
* @method OrderStatus[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class OrderStatusRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, OrderStatus::class);
}

// /**
// * @return OrderStatus[] Returns an array of OrderStatus objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('o')
->andWhere('o.exampleField = :val')
->setParameter('val', $value)
->orderBy('o.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/

/*
public function findOneBySomeField($value): ?OrderStatus
{
return $this->createQueryBuilder('o')
->andWhere('o.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}

+ 50
- 0
src/Repository/UnitRepository.php View File

@@ -0,0 +1,50 @@
<?php

namespace App\Repository;

use App\Entity\Unit;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;

/**
* @method Unit|null find($id, $lockMode = null, $lockVersion = null)
* @method Unit|null findOneBy(array $criteria, array $orderBy = null)
* @method Unit[] findAll()
* @method Unit[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class UnitRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, Unit::class);
}

// /**
// * @return Unit[] Returns an array of Unit objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('u')
->andWhere('u.exampleField = :val')
->setParameter('val', $value)
->orderBy('u.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/

/*
public function findOneBySomeField($value): ?Unit
{
return $this->createQueryBuilder('u')
->andWhere('u.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}

Loading…
Cancel
Save