Notice: Trying to get property 'id' of non-object in /var/www/clients/client5/web38/web/src/Resources/Texts/TextRepository.php on line 83

Fatal error: Uncaught TypeError: Argument 1 passed to OndrejKobza\Resources\Images\ImageRepository::getAllByTextId() must be of the type int, null given, called in /var/www/clients/client5/web38/web/src/Resources/Texts/TextRepository.php on line 83 and defined in /var/www/clients/client5/web38/web/src/Resources/Images/ImageRepository.php:51 Stack trace: #0 /var/www/clients/client5/web38/web/src/Resources/Texts/TextRepository.php(83): OndrejKobza\Resources\Images\ImageRepository->getAllByTextId(NULL) #1 /var/www/clients/client5/web38/web/src/UI/Front/Presenters/TextsPresenter.php(37): OndrejKobza\Resources\Texts\TextRepository->getOneById(2) #2 [internal function]: OndrejKobza\UI\Front\Presenters\TextsPresenter->renderTextDetail('2-fejeton-2') #3 /var/www/clients/client5/web38/web/vendor/nette/application/src/Application/UI/Component.php(102): ReflectionMethod->invokeArgs(Object(OndrejKobza\UI\Front\Presenters\TextsPresenter), Array) #4 /var/www/clients/client5/web38/web/vendor/nette/application/src/Application/UI/Presente in /var/www/clients/client5/web38/web/src/Resources/Images/ImageRepository.php on line 51