Skip to content

Bug: Trying to get property 'resultID' of non-object #2

@yassinedoghri

Description

@yassinedoghri

Hey @michalsn, first of all, thank you for this project!

I have stumbled on this error when trying to insert a record with the UuidModel's insert method:

image

The problem might come from this PR in CodeIgniter4.. Before then, inserting a record worked without hassle.

Possible solution

Changing the line from if ($result->resultID) to if ($result) fixes the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions