Warning: Creating default object from empty value in /var/www/html/positiveline.rs/applications/website/modules/product/src/Product/Repository/ProductRepository.php on line 704

Fatal error: Uncaught Error: Call to undefined method stdClass::getTotal() in /var/www/html/positiveline.rs/applications/website/modules/product/src/Product/Repository/ProductRepository.php:706 Stack trace: #0 /var/www/html/positiveline.rs/applications/website/modules/product/src/Product/Service/Factory/Service.php(109): Product\Repository\ProductRepository->getProduct('7') #1 [internal function]: Product\Service\Factory\Service->__invoke() #2 /var/www/html/positiveline.rs/vendor/empire-framework/src/Empire/Service/ServiceLocator.php(180): call_user_func_array(Array, Array) #3 /var/www/html/positiveline.rs/applications/website/Application/ApplicationModule.php(67): Empire\Service\ServiceLocator->get('ProductService') #4 /var/www/html/positiveline.rs/applications/website/modules/product/src/Product/Module.php(9): Application\ApplicationModule->__construct() #5 /var/www/html/positiveline.rs/applications/website/modules/product/src/Product/Controller/ProductController.php(31): Product\Module->__construct() #6 /var/www/html/p in /var/www/html/positiveline.rs/applications/website/modules/product/src/Product/Repository/ProductRepository.php on line 706