예제 #1
0
 public function findOneByCode($couponCode)
 {
     $coupon = parent::findOneBy(['code' => $couponCode]);
     if ($coupon === null) {
         throw $this->getEntityNotFoundException();
     }
     return $coupon;
 }
예제 #2
0
 public function findOneByExternalId($externalId)
 {
     return parent::findOneBy(['externalId' => $externalId]);
 }
 /**
  * @param UuidInterface $uuid4
  * @return Attachment
  */
 public function findOneByUuid(UuidInterface $uuid4)
 {
     return $this->returnOrThrowNotFoundException(parent::findOneBy(['id' => $uuid4]));
 }
예제 #4
0
 public function findOneBySku($sku)
 {
     return parent::findOneBy(['sku' => $sku]);
 }
예제 #5
0
 public function findOneByCode($code)
 {
     return $this->returnOrThrowNotFoundException(parent::findOneBy(['code' => $code]));
 }
예제 #6
0
 /**
  * @param string $orderExternalId
  * @return Order
  */
 public function findOneByExternalId($orderExternalId)
 {
     return $this->returnOrThrowNotFoundException(parent::findOneBy(['externalId' => $orderExternalId]));
 }