Skip to content

"create method may not be called on a loaded entity" even though I reset #27

@sdwebguy

Description

@sdwebguy

I am running the latest version of this module and I see this exception quite a bit using this module in my API:

The create method may not be called on a loaded entity. Use the update() method to update an existing entity or reset the entity state

It comes from ActiveEntity.cfc line 128.

But I am calling it using this code:

getModel('LoggingService@MYAPI').reset().populate(prc.apiLogEntry).create();

which IS resetting first, as instructed. I have not found a pattern when this happens -- it doesn't happen all the time. Any ideas?

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