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

Can not name relationship field "Type" #232

Open

Description

@kenzik

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.

Activity

  1. LtSquigs commented on Apr 14, 2015

    @LtSquigs
    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)

  2. kenzik commented on Apr 14, 2015

    @kenzik
    Author

    Thanks!

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions