From fe40096aaa89a1bf5b47be922a06366fdf8c77f7 Mon Sep 17 00:00:00 2001 From: "Andrey F. Mindubaev" Date: Tue, 19 Jun 2018 19:48:54 +0300 Subject: [PATCH] Pass second argument to addChild --- composer.json | 2 +- src/Admin/CommentAdmin.php | 2 -- src/Resources/config/admin.xml | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 00f033b8..ff85703c 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ ], "require": { "php": "^5.6 || ^7.0", - "sonata-project/admin-bundle": "^3.31", + "sonata-project/admin-bundle": "^3.35", "sonata-project/classification-bundle": "^3.6", "sonata-project/core-bundle": "^3.9", "sonata-project/datagrid-bundle": "^2.3", diff --git a/src/Admin/CommentAdmin.php b/src/Admin/CommentAdmin.php index fd11d163..028c53a8 100644 --- a/src/Admin/CommentAdmin.php +++ b/src/Admin/CommentAdmin.php @@ -23,8 +23,6 @@ class CommentAdmin extends AbstractAdmin { - protected $parentAssociationMapping = 'post'; - /** * @var CommentManagerInterface */ diff --git a/src/Resources/config/admin.xml b/src/Resources/config/admin.xml index 87f26e70..d90718b8 100644 --- a/src/Resources/config/admin.xml +++ b/src/Resources/config/admin.xml @@ -14,6 +14,7 @@ + post %sonata.news.admin.post.translation_domain%