You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name: Posts
slug: posts
description: A description of the content type for the editors
label_field_name: title
order_by: manually
fields:
- title:
label: Title
type: string
required: true
hint: A description of the field for the editors
localized: false
- comments:
label: Comments
type: has_many
required: false
localized: false
class_name: comments
inverse_of: post
ui_enabled: true
comments.yml
name: Comments
slug: comments
description: A description of the content type for the editors
label_field_name: message
order_by: manually
fields:
- message:
label: Message
type: string
required: true
hint: A description of the field for the editors
localized: false
- post:
label: Post
type: belongs_to
required: true
hint: A description of the field for the editors
localized: false
class_name: posts
Heres how the sample data look like:
data/posts.yml
- "Sample 1":
message: "This is a message"
post: sample-1 # Permalink of the target entry
- "Sample 2":
message: "This is a message"
post: sample-2 # Permalink of the target entry
- "Sample 3":
message: "This is a message"
post: sample-3 # Permalink of the target entry
- "Sample 4":
message: "This is a message"
post: sample-4 # Permalink of the target entry
I've tried adding the relationship through the engine backend and pulling it back to wagon. Deleted the backend model and push it back to force a re-create using the engine generaged yml, I enocounter the same error as well.
This seems to be a bug?
The text was updated successfully, but these errors were encountered:
Move your yml files out of the data folder and put them back in one at a time and push. Start with the least complex model and do the ones with relations last.
Good luck ;-)
I'm using wagon 1.4.0 and engine 2.4.1
Following instructions from http://doc.locomotivecms.com/making-blog/3-5-related-types, I've created Posts and Comments with the relationship of a post has many comments.
posts.yml
comments.yml
Heres how the sample data look like:
data/posts.yml
data/comments.yml
I've tried adding the relationship through the engine backend and pulling it back to wagon. Deleted the backend model and push it back to force a re-create using the engine generaged yml, I enocounter the same error as well.
This seems to be a bug?
The text was updated successfully, but these errors were encountered: