Skip to content

[Loggable] log a ReferenceMany collection with storeAs: id #2970

@mbraeuner

Description

@mbraeuner

Feature Request

For the versioning I'm able to save "arrays" to the database and log the changes.
For the mongodb extension we have to use the collection type to save index arrays. This works.

The ReferenceMany will throw an configuration exception
"Cannot apply versioning to field [property] as it is collection in object -"

Both are collections. One working and the other one not.

In my case I store the reference by id. This is an array of ids in mongodb. On database level it is the same. An array in database with collection type in doctrine doument.
#[ODM\ReferenceMany(storeAs: "id" ...)]

Is there any chance to treat both cases the same to log also the changed ids of an ReferenceMany collection?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions