Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #316 Don't remove driver options when extending a grid configurat…
…ion (loic425) This PR was merged into the 1.12 branch. Discussion ---------- Based on #317 ```php <?php use App\Entity\Suplier; use Sylius\Bundle\GridBundle\Builder\GridBuilder; use Sylius\Bundle\GridBundle\Config\GridConfig; return static function (GridConfig $grid) { $grid->addGrid( GridBuilder::create('sylius_admin_product_variant') ); }; ``` When running this following command: ```bash $ bin/console debug:config sylius_grid grids.sylius_admin_product_variant.driver ``` Before ```yaml name: doctrine/orm options: { } ``` After ```yaml name: doctrine/orm options: class: App\Entity\Product\ProductVariant repository: method: createQueryBuilderByProductId arguments: - "expr:service('sylius.context.locale').getLocaleCode()" - $productId ``` Commits ------- c7d75bd Don't remove driver options when extending a grid configuration
- Loading branch information