Browse Source

Erreur 500 : Argument 1 passed to Lc\SovBundle\Repository\AbstractStore::getOneById() must be of the type int, string given

develop
Guillaume Bourgeois 2 years ago
parent
commit
4bfe1f3ac2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Controller/Order/CartController.php

+ 1
- 1
Controller/Order/CartController.php View File

$data = $request->request->all(); $data = $request->request->all();


if (isset($data['order_products']['id_product_family'])) { if (isset($data['order_products']['id_product_family'])) {
$idProductFamily = $data['order_products']['id_product_family'];
$idProductFamily = (int) $data['order_products']['id_product_family'];
$this->productFamily = $this->getProductFamilyContainer()->getStore()->getOneById($idProductFamily); $this->productFamily = $this->getProductFamilyContainer()->getStore()->getOneById($idProductFamily);


if(!$this->productFamily) { if(!$this->productFamily) {

Loading…
Cancel
Save