-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #307 [RefundPayment] Change order number to Order relation on R…
…efundPayment (GSadee) This PR was merged into the 1.0-dev branch. Discussion ---------- Partially fixes #193 Similar to #306 Commits ------- 91173ec [RefundPayment] Change order number to Order relation on RefundPayment eee327c [RefundPayment] Add migration for changing the order relation d278a5d [RefundPayment] Add note in UPGRADE file about changing the order relation 545d719 [Behat] Fix FailedRefundPaymentFactory after changing the order relation 8a526ab [RefundPayment] Fixes after static analysis f464e20 [RefundPayment] Adjust DefaultRelatedPaymentIdProvider after changing the order relation 371a21c [RefundPayment] Adjust routing and twig after changing the order relation 4b25791 [RefundPayment] Introduce custom repository
- Loading branch information
Showing
20 changed files
with
210 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Sylius package. | ||
* | ||
* (c) Paweł Jędrzejewski | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Sylius\RefundPlugin\Doctrine\ORM; | ||
|
||
use Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository; | ||
use Sylius\RefundPlugin\Repository\RefundPaymentRepositoryInterface; | ||
|
||
class RefundPaymentRepository extends EntityRepository implements RefundPaymentRepositoryInterface | ||
{ | ||
public function findByOrderNumber(string $orderNumber): array | ||
{ | ||
return $this->createQueryBuilder('o') | ||
->innerJoin('o.order', 'ord') | ||
->andWhere('ord.number = :orderNumber') | ||
->setParameter('orderNumber', $orderNumber) | ||
->getQuery() | ||
->getResult() | ||
; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.