Преглед на файлове

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)
         {