https://www.test.dombusin.com/catalog/cat-626-busini-tibetskogo-stilya

Exceptions

Cannot assign int to property App\Entity\Prod::$numdiscountopt of type array

Exception

TypeError

  1.      */
  2.     #[ReturnTypeWillChange]
  3.     public function setValue($object$value null)
  4.     {
  5.         if (! ($object instanceof Proxy && ! $object->__isInitialized())) {
  6.             parent::setValue($object$value);
  7.             return;
  8.         }
  9.         if ($object instanceof CommonProxy) {
  1.      */
  2.     #[ReturnTypeWillChange]
  3.     public function setValue($object$value null)
  4.     {
  5.         if (! ($object instanceof Proxy && ! $object->__isInitialized())) {
  6.             parent::setValue($object$value);
  7.             return;
  8.         }
  9.         if ($object instanceof CommonProxy) {
in vendor/doctrine/orm/src/UnitOfWork.php -> setValue (line 2978)
  1.             }
  2.         }
  3.         foreach ($data as $field => $value) {
  4.             if (isset($class->fieldMappings[$field])) {
  5.                 $class->reflFields[$field]->setValue($entity$value);
  6.             }
  7.         }
  8.         // Loading the entity right here, if its in the eager loading map get rid of it there.
  9.         unset($this->eagerLoadingEntities[$class->rootEntityName][$idHash]);
  1.         if (isset($this->_hints[Query::HINT_REFRESH_ENTITY])) {
  2.             $this->registerManaged($this->class$this->_hints[Query::HINT_REFRESH_ENTITY], $data);
  3.         }
  4.         $uow    $this->_em->getUnitOfWork();
  5.         $entity $uow->createEntity($entityName$data$this->_hints);
  6.         $result[] = $entity;
  7.         if (isset($this->_hints[Query::HINT_INTERNAL_ITERATION]) && $this->_hints[Query::HINT_INTERNAL_ITERATION]) {
  8.             $this->_uow->hydrationComplete();
  1.     protected function hydrateAllData()
  2.     {
  3.         $result = [];
  4.         while ($row $this->statement()->fetchAssociative()) {
  5.             $this->hydrateRowData($row$result);
  6.         }
  7.         $this->_em->getUnitOfWork()->triggerEagerLoads();
  8.         return $result;
  1.         $this->_em->getEventManager()->addEventListener([Events::onClear], $this);
  2.         $this->prepare();
  3.         try {
  4.             $result $this->hydrateAllData();
  5.         } finally {
  6.             $this->cleanup();
  7.         }
  8.         return $result;
  1.         [$params$types] = $this->expandParameters($criteria);
  2.         $stmt             $this->conn->executeQuery($sql$params$types);
  3.         $hydrator $this->em->newHydrator($this->currentPersisterContext->selectJoinSql Query::HYDRATE_OBJECT Query::HYDRATE_SIMPLEOBJECT);
  4.         return $hydrator->hydrateAll($stmt$this->currentPersisterContext->rsm, [UnitOfWork::HINT_DEFEREAGERLOAD => true]);
  5.     }
  6.     /**
  7.      * {@inheritDoc}
  8.      */
  1.      */
  2.     public function findBy(array $criteria, ?array $orderBy null$limit null$offset null)
  3.     {
  4.         $persister $this->_em->getUnitOfWork()->getEntityPersister($this->_entityName);
  5.         return $persister->loadAll($criteria$orderBy$limit$offset);
  6.     }
  7.     /**
  8.      * Finds a single entity by a set of criteria.
  9.      *
EntityRepository->findBy() in src/Repository/ProdRepository.php (line 247)
  1.     
  2.         foreach ($prods as $k => $v) {
  3.             $ids[] = $v['id'];
  4.         }
  5.         $prods $this->findBy(['id' => $ids]);
  6.         foreach ($prods as $k => $prod) {
  7.             $prods[$k]->prices $this->ModelProd->getPrices($prod);
  8.         }
  9.         
ProdRepository->prodArrayToEntity() in src/Controller/CatalogController.php (line 403)
  1.             }
  2.             
  3.             $showcont 0;
  4.         }
  5.         
  6.         $show_prods $this->Prods->prodArrayToEntity($show_prods);        
  7.         
  8.         if ($request->get('order') == 'prior') {
  9.             uasort($show_prods'\App\Repository\ProdRepository::sortByPriorDesc');
  10.         } elseif ($request->get('order') == 'changed' || (empty($request->get('order')) && $spec == 'new')) {
  11.             uasort($show_prods'\App\Repository\ProdRepository::sortByChangedAsc');
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         if (!IpUtils::checkIp('127.0.0.1'$trustedProxies)) {
  2.             Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet());
  3.         }
  4.         try {
  5.             return $kernel->handle($request$type$catch);
  6.         } finally {
  7.             // restore global state
  8.             Request::setTrustedProxies($trustedProxies$trustedHeaderSet);
  9.         }
  10.     }
  1.         if ($this->surrogate) {
  2.             $this->surrogate->addSurrogateCapability($request);
  3.         }
  4.         // always a "master" request (as the real master request can be in cache)
  5.         $response SubRequestHandler::handle($this->kernel$requestHttpKernelInterface::MAIN_REQUEST$catch);
  6.         /*
  7.          * Support stale-if-error given on Responses or as a config option.
  8.          * RFC 7234 summarizes in Section 4.2.4 (but also mentions with the individual
  9.          * Cache-Control directives) that
  1.     protected function forward(Request $requestbool $catch falseResponse $entry null): Response
  2.     {
  3.         $this->getKernel()->boot();
  4.         $this->getKernel()->getContainer()->set('cache'$this);
  5.         return parent::forward($request$catch$entry);
  6.     }
  7.     /**
  8.      * Returns an array of options to customize the Cache configuration.
  9.      */
  1.         // avoid that the backend sends no content
  2.         $subRequest->headers->remove('If-Modified-Since');
  3.         $subRequest->headers->remove('If-None-Match');
  4.         $response $this->forward($subRequest$catch);
  5.         if ($response->isCacheable()) {
  6.             $this->store($request$response);
  7.         }
  1.         }
  2.         if (null === $entry) {
  3.             $this->record($request'miss');
  4.             return $this->fetch($request$catch);
  5.         }
  6.         if (!$this->isFreshEnough($request$entry)) {
  7.             $this->record($request'stale');
  1.                 reload the cache by fetching a fresh response and caching it (if possible).
  2.             */
  3.             $this->record($request'reload');
  4.             $response $this->fetch($request$catch);
  5.         } else {
  6.             $response $this->lookup($request$catch);
  7.         }
  8.         $this->restoreResponseBody($request$response);
  9.         if (HttpKernelInterface::MAIN_REQUEST === $type) {
  1.     {
  2.         if (!$this->booted) {
  3.             $container $this->container ?? $this->preBoot();
  4.             if ($container->has('http_cache')) {
  5.                 return $container->get('http_cache')->handle($request$type$catch);
  6.             }
  7.         }
  8.         $this->boot();
  9.         ++$this->requestStackSize;
  1.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/home/test.dombusin.com/public_html/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {    
  5.     return new Kernel('dev'true);
  6. };

Stack Trace

TypeError
TypeError:
Cannot assign int to property App\Entity\Prod::$numdiscountopt of type array

  at vendor/doctrine/persistence/src/Persistence/Reflection/RuntimeReflectionProperty.php:61
  at ReflectionProperty->setValue()
     (vendor/doctrine/persistence/src/Persistence/Reflection/RuntimeReflectionProperty.php:61)
  at Doctrine\Persistence\Reflection\RuntimeReflectionProperty->setValue()
     (vendor/doctrine/orm/src/UnitOfWork.php:2978)
  at Doctrine\ORM\UnitOfWork->createEntity()
     (vendor/doctrine/orm/src/Internal/Hydration/SimpleObjectHydrator.php:173)
  at Doctrine\ORM\Internal\Hydration\SimpleObjectHydrator->hydrateRowData()
     (vendor/doctrine/orm/src/Internal/Hydration/SimpleObjectHydrator.php:65)
  at Doctrine\ORM\Internal\Hydration\SimpleObjectHydrator->hydrateAllData()
     (vendor/doctrine/orm/src/Internal/Hydration/AbstractHydrator.php:272)
  at Doctrine\ORM\Internal\Hydration\AbstractHydrator->hydrateAll()
     (vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:948)
  at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadAll()
     (vendor/doctrine/orm/src/EntityRepository.php:225)
  at Doctrine\ORM\EntityRepository->findBy()
     (src/Repository/ProdRepository.php:247)
  at App\Repository\ProdRepository->prodArrayToEntity()
     (src/Controller/CatalogController.php:403)
  at App\Controller\CatalogController->prodList()
     (vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php:86)
  at Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle()
     (vendor/symfony/http-kernel/HttpCache/HttpCache.php:457)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->forward()
     (vendor/symfony/framework-bundle/HttpCache/HttpCache.php:71)
  at Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache->forward()
     (vendor/symfony/http-kernel/HttpCache/HttpCache.php:430)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch()
     (vendor/symfony/http-kernel/HttpCache/HttpCache.php:328)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup()
     (vendor/symfony/http-kernel/HttpCache/HttpCache.php:212)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->handle()
     (vendor/symfony/http-kernel/Kernel.php:193)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:29)
  at require_once('/home/test.dombusin.com/public_html/vendor/autoload_runtime.php')
     (public/index.php:5)