Skip to content

Definition with checkbox type and multiple options #35

@DavidG04

Description

@DavidG04

Hi,

I use your bundle in my project with SonataAdminBundle. I create Admin class to populate a schema with definition and options. All it's ok but when i try to use a definition with multiple options an error occured on database persist.

In fact the system try to register an array in string value.

In AttributeSubscriber class the createValueField method transform checkbox definition in choice definition with multiple and expanded options to true. All it's ok to display the field but not to persist the data.

Maybe i will try to serialize the data before persist and deserialize in pre set data ?

if you want my admin code and my template, it's with pleasure.

Excuse me for my english but it's very poor.

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