How to use Ajax within Sonata Admin forms?

后端 未结 4 1734
有刺的猬
有刺的猬 2020-11-28 22:10

I have a Merchant entity with the following fields and associations:-

/**
 * @ORM\\ManyToMany(targetEntity=\"Category\", inversedBy=\"merchants\")
 */
public         


        
4条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-28 22:29

    At step 1 of Amit and Lumbendil answer you should change

    {% extends base_template %}
    

    into

    {% extends 'SonataAdminBundle::standard_layout.html.twig' %}
    

    if you get an error like

    Unable to find template "" in YourBundle:YourObject:base_edit.html.twig at line 34.  
    

提交回复
热议问题