Replies: 14 comments 3 replies
-
@JoshTango There isn't enough here to try to reproduce it. I suggest you share with you user setup recipe and your sub recipe so we can see what you are doing. |
Beta Was this translation helpful? Give feedback.
-
I am using the blank theme.
|
Beta Was this translation helpful? Give feedback.
-
You can add any child recipe you want. |
Beta Was this translation helpful? Give feedback.
-
We'll I can add any valid recipe and it will work sure. But, you are adding one that does not work as per your claim. So I think you should share what you have. The the receipt, file name, location of the file and how you are importing the recipe so we can see if there is missing or if there is something wrong with OC. A site note, please format any code/json you share to make it easy for the users to read your posts. |
Beta Was this translation helpful? Give feedback.
-
No I don't think you can call a child recipe from the migrations folder period. What recipe you use is irrelevant but I will share my code. I will play around some more. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Thats my child recipe posted above. |
Beta Was this translation helpful? Give feedback.
-
When you define a migration recipe under a
You can find this recipe file under the |
Beta Was this translation helpful? Give feedback.
-
Usually you execute such a recipe in a registered |
Beta Was this translation helpful? Give feedback.
-
Yes I have been using that method in c# the whole time. But the recipe I execute also has a recipe step in the json. That recipe step is not working if you call the parent from the Create method in the migrations class. |
Beta Was this translation helpful? Give feedback.
-
Here is my c# code in my migrations class:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I changed the description to clarify I m triggering this parent recipe from the migrations class when I enable the module under features menu option. |
Beta Was this translation helpful? Give feedback.
-
@sebastienros see above. |
Beta Was this translation helpful? Give feedback.
-
I put a recipe in the migrations folder. I call this recipe from my data migrations class using the Create() method. In the recipe step I want it to run a child recipe. I enable the module under features.
If this child recipe is in the migrations folder it will not run and if the child recipe is in the recipe folder it hangs.
Beta Was this translation helpful? Give feedback.
All reactions