Sonata admin bundle, manipulate objects

前端 未结 2 1710
天命终不由人
天命终不由人 2021-01-26 17:55

I have 2 entities with one to many relationship project and prototype And I\'ve been looking for a way to list the prototypes that belong to a project in the show action . here

2条回答
  •  心在旅途
    2021-01-26 18:14

    I found a way to resolve the problem but still I feel it's not the better way I created a controller and overrided the showAction

    redirect($this->generateUrl('admin_app_prototype_list', array(
            'filter[projet__id][value]'=>$id
        )));
        }
    }
    

    Then I get a list of prototypes that belong to a project.

提交回复
热议问题