문제

I'm using Symfony 2.3 and newest SonataAdminBundle. It's possible to create editable fields in list view with SonataAdminBundle? What is the best practice?

도움이 되었습니까?

해결책

Try this:

$listMapper
            ->addIdentifier('title')
            ->addIdentifier('artist')
            ->add('createDate')
            ->add('changeDate')
            ->add('missing', null, array('editable' => true))
            ->add('_action', 'actions', array(
                'actions' => array(
                    'view' => array(),
                    'edit' => array(),
                    'delete' => array()
                )
            ))
        ;

Notice the array('editable' => true). For booleans this works, I'm not sure for other fields.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top