Skip to content
This repository was archived by the owner on Jul 22, 2022. It is now read-only.
This repository was archived by the owner on Jul 22, 2022. It is now read-only.

Sortable not working #332

@danielantelo

Description

@danielantelo

So i have a sonata_type_collection working in my symfony cmf project, it creates, updates and removes child documents correctly.

I now want to enable sortable, but when i save with the sortable flag enabled i get "NodeName property "nodeName" may not be empty in document of class..."

Is this a known issue? or am i doing something wrong.

->add(
     'someChidlren',
     'sonata_type_collection',
     array(
          'label'    => false,
          'by_reference'   => false,
          'cascade_validation' => true,
     ),
     array(
          'admin_code' => 'admin_reference_here',
          'edit'   => 'inline',
          'inline' => 'table',
           'sortable'  => 'position',
     )
)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions