Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
Pass second argument to addChild
Browse files Browse the repository at this point in the history
  • Loading branch information
covex-nn authored and greg0ire committed Jun 19, 2018
1 parent 5a2fcb4 commit fe40096
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions src/Admin/CommentAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@

class CommentAdmin extends AbstractAdmin
{
protected $parentAssociationMapping = 'post';

/**
* @var CommentManagerInterface
*/
Expand Down
1 change: 1 addition & 0 deletions src/Resources/config/admin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
</call>
<call method="addChild">
<argument type="service" id="sonata.news.admin.comment"/>
<argument>post</argument>
</call>
<call method="setTranslationDomain">
<argument>%sonata.news.admin.post.translation_domain%</argument>
Expand Down

0 comments on commit fe40096

Please sign in to comment.