瀏覽代碼

Use Video/Playlist example like in the above example (#4649)

Oskar Stark 7 年之前
父節點
當前提交
51387ad0dd
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      Resources/doc/reference/architecture.rst

+ 4 - 3
Resources/doc/reference/architecture.rst

@@ -403,14 +403,15 @@ will be created regardless of whether you actually need them or not. To get rid
 of them, you may override the ``configureRoutes`` method::
 
     <?php
-    namespace Sonata\NewsBundle\Admin;
+    
+    namespace AppBundle\Admin;
 
     use Sonata\AdminBundle\Admin\AbstractAdmin;
     use Sonata\AdminBundle\Route\RouteCollection;
 
-    class CommentAdmin extends AbstractAdmin
+    class VideoAdmin extends AbstractAdmin
     {
-        protected $parentAssociationMapping = 'post';
+        protected $parentAssociationMapping = 'playlist';
 
         protected function configureRoutes(RouteCollection $collection)
         {