Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Wrong LazyGhost initialization on cloned entity #10817

@Erwui

Description

@Erwui

Bug Report

Q A
BC Break no
Version 2.15.3

Summary

When you clone an entity with a oneToOne relationship, the cloned entity is filled with data that already exists and has nothing to do with it.

Current behavior

The clone is reloaded from the database even though it is a new entity

How to reproduce

You can find a reproducer here: https://github.com/Erwui/lazy_ghost_bug
Go on "/"

Expected behavior

When setting "enable_lazy_ghost_objects" to false the clone is correct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions