I have 2 modules: ModuleA and ModuleB.
- ModuleA creates some categories in a data install script.
- ModuleB creates a new category attribute in a data install script.
(the modules do other things, but these are the important things to mention for this question)
ModuleA sets data on the categories when created and I want it to set data for the attribute created in ModuleB.
But the values never persist if both modules are installed at the same time.
I currently have ModuleA depending on ModuleB but that makes no difference.
How can i resolve this issue and have both moudles installable at the same time?
EDIT TO QUESTION:
I have now moved the code for populating the category values into the same module and exactly same setup script that installs the attribute. It also fails.
Therefore it would appear that it is not possible to create a new category attribute and populate values for that attribute during the same setup.
Is this a bug, or correct behaviour?