Skip to content

Commit

Permalink
Merge branch '1.7'
Browse files Browse the repository at this point in the history
* 1.7:
  [Maintenance] Conflict failed spec version
  Use query builder in migration
  Add missing images in entry.js
  • Loading branch information
lchrusciel committed Jul 10, 2020
2 parents b118e66 + f803d9d commit ca41735
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 12 additions & 1 deletion app/migrations/Version20171003103916.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,18 @@ public function up(Schema $schema): void
$defaultLocale = $this->container->getParameter('locale');
$productAttributeRepository = $this->container->get('sylius.repository.product_attribute');

$productAttributes = $productAttributeRepository->findBy(['type' => SelectAttributeType::TYPE]);
$productAttributes = $productAttributeRepository
->createQueryBuilder('o')
->select([
'o.id',
'o.configuration',
])
->where('o.type = :type')
->setParameter('type', SelectAttributeType::TYPE)
->getQuery()
->getResult()
;

/** @var ProductAttributeInterface $productAttribute */
foreach ($productAttributes as $productAttribute) {
$configuration = $productAttribute->getConfiguration();
Expand Down
3 changes: 3 additions & 0 deletions src/Sylius/Bundle/ShopBundle/Resources/private/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ import './scss/style.scss';

import 'sylius/ui-resources/img/logo.png';
import 'sylius/ui-resources/img/avatar.png';

import './img/homepage-banner.jpg';
import './img/sylius-plus-banner.png';

0 comments on commit ca41735

Please sign in to comment.