Skip to content

Need to refresh record stored in Mapper::identityMap #1

@pokmot

Description

@pokmot

I am using the new Symfony Flex bundle. I have a long running process. I am creating a new row in a table, then waiting for a semaphore, and reading the row again as it has changed in the meantime.

Similarly, I want to be able to create a new row and then re-read it as MySQL executes a trigger that amends values. I am not able to retrieve the updated row values.

It seems the row is stored in Mapper::identityMap so I am getting back the original array passed through; not the updated row from the database.

I cannot see a way to force a refresh so the row is actually read from the database.

Thoughts?

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