Parcourir la source

fix error with preview block

Thomas Rabaix il y a 14 ans
Parent
commit
ea0bba8db5
2 fichiers modifiés avec 4 ajouts et 5 suppressions
  1. 3 4
      Model/ModelManagerInterface.php
  2. 1 1
      Resources/views/standard_layout.html.twig

+ 3 - 4
Model/ModelManagerInterface.php

@@ -108,16 +108,16 @@ interface ModelManagerInterface
 
     /**
      *
-     * @param object
+     * @param object $model
      * @return mixed
      */
     function getIdentifierValues($model);
 
     /**
-     *
+     * @param string $class
      * @return array
      */
-    function getIdentifierFieldNames($cass);
+    function getIdentifierFieldNames($class);
 
     /**
      * @abstract
@@ -164,7 +164,6 @@ interface ModelManagerInterface
      * Clear the collection
      *
      * @param mixed $collection
-     * @param mixed $element
      * @return mixed
      */
     function collectionClear(&$collection);

+ 1 - 1
Resources/views/standard_layout.html.twig

@@ -85,7 +85,7 @@ file that was distributed with this source code.
 
             {% if block('preview') is not empty %}
                 <div class="span-24 last content clear">
-                    <div class="sonata-ba-preview">{{ preview|raw }}</div>
+                    <div class="sonata-ba-preview">{{ block('preview')|raw }}</div>
                 </div>
             {% endif %}