installing project on clean database
-
29-03-2021 - |
Question
I have created data patch It was working fine locally
Unable to apply data patch Devall\SpecialPrice\Setup\Patch\Data\AddLabaCenaAttribute for module Devall_SpecialPrice. Original exception message: Notice: Undefined index: entity_type_id in /var/www/html/vendor/magento/module-eav/Setup/EavSetup.php on line 1097
now when setup:upgrading, have this error.
What can be the problem
I am using 2.3.3 magento
$this->eavSetupFactory->updateAttribute(4, 184, 'is_used_for_promo_rules', 1);
Solution
I used clean database so module changed its ID, that was the problem.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange