-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parent/Child modResource JSON seed data issue. #39
Comments
Case matters for aliases: it must be "Children" -- use the graph function to help identify the aliases available. |
I just fixed the case, and ran seed command. I got this error: ERROR: build_attributes not set for modResource-->Children in composer.json. Make sure your definitions include "related_objects" and "related_object_attributes" Would you please shed some light on this? |
For each object, you need to describe its behavior when it comes to primary key, creates vs. updates, etc. This is done via the build_attributes. E.g. look at https://github.com/craftsmancoding/repoman/wiki/composer.json So you could include something like the following in your "extra" --> "build_attributes" node in your composer.json:
|
I have tried this, still couldnt get the children docs in there. The data is same as above json. This is my buid_attributes section: "build_attributes":{
"modResource": {
"preserve_keys": true,
"update_object": true,
"unique_key": ["alias"],
"related_objects": true,
"related_object_attributes": {
"Children": {
"preserve_keys": true,
"update_object": true,
"unique_key": ["alias"]
}
}
}
} |
Hmm... I'll have to troubleshoot and write up a tutorial. |
As per twitter conversation: https://twitter.com/craftsmancoding/status/615949782897463296
The following dataset only created parent page. and thats it.
Please see the data sample below:
The text was updated successfully, but these errors were encountered: