Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 1 passed to App\Entity\AddToCart::setProductVariant() must be an instance of PureIllusion\ShopBundle\Entity\ProductVariant, null given, called in /var/www/lamaisonduparasol.com/releases/678/src/Controller/ProductController.php on line 166 in /var/www/lamaisonduparasol.com/releases/678/src/Entity/AddToCart.php:46 Stack trace: #0 /var/www/lamaisonduparasol.com/releases/678/src/Controller/ProductController.php(166): App\Entity\AddToCart->setProductVariant(NULL) #1 /var/www/lamaisonduparasol.com/releases/678/vendor/symfony/http-kernel/HttpKernel.php(151): App\Controller\ProductController->detail(Object(Symfony\Component\HttpFoundation\Request), Object(PureIllusion\ShopBundle\Entity\Product)) #2 /var/www/lamaisonduparasol.com/releases/678/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 2) #3 /var/www/lamaisonduparasol.com/releases/6 in /var/www/lamaisonduparasol.com/releases/678/src/Entity/AddToCart.php on line 46