Skip to content

flush($entity) is deprecated, and duplicates updates and logs #40

@Nils-1st-retail

Description

@Nils-1st-retail

According to doctrine/orm#6915
$em->flush($entity) shouldn't be used anymore since it will perform a full flush.

This currently causes duplicate updates, and entries in the audit log if you update multiple entities in the same flush.
The first entity is only updated once and one audit log. The second entity twice. 3rd 3 times and so on.

Further more $em->flush($entity) will be removed with doctrine v3.0.

I'm currently running on Doctrine v2.9 with EasuAuditBundle v1.4.9

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