Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Can not name relationship field "Type" #232

Open
kenzik opened this issue Apr 13, 2015 · 2 comments
Open

Can not name relationship field "Type" #232

kenzik opened this issue Apr 13, 2015 · 2 comments

Comments

@kenzik
Copy link

kenzik commented Apr 13, 2015

Logging this quickly, and will produce a smaller use-case/demo when I get a chance (hopefully this is the right repo for it).

It seems that if I create a relationship field and use the name "Type", the generator dies when rendering that particular template:

Fatal error: Cannot set property _type of # which has only a getter

Renaming that field to anything else that the CMS thinks is valid will work.

@LtSquigs
Copy link
Contributor

Yes this is due to us using _type as a private variable and conflicting with the special relationship field stuff, will talk to mike about a workaround for this (like making a field named type translate to something else)

@kenzik
Copy link
Author

kenzik commented Apr 14, 2015

Thanks!

Now I don't need to make a small demo of the issue. :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants