简体   繁体   中英

Sonata admin list editable conflict with edit / show

I add editable field

 $listMapper
            ->addIdentifier('id')
            ->addIdentifier('name',null,[
                'editable' => true,
            ])

But it's not editable, name is link to edit.

How disable creating link without disable edit route ?

The addIdentifer method is to create a link.

If you don't want a link, you need to use add method

$listMapper
 ->addIdentifier('id')
 ->add('name',null,[ 'editable' => true, ])

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM