Procházet zdrojové kódy

Merge pull request #736 from havvg/2.0

update ModelManagerInterface
Thomas před 13 roky
rodič
revize
0bbe5f70aa
1 změnil soubory, kde provedl 9 přidání a 16 odebrání
  1. 9 16
      Model/ModelManagerInterface.php

+ 9 - 16
Model/ModelManagerInterface.php

@@ -18,22 +18,6 @@ use Sonata\AdminBundle\Admin\AdminInterface;
 
 interface ModelManagerInterface
 {
-    /**
-     * Returns true if the model has a relation
-     *
-     * @param string $name
-     *
-     * @return boolean
-     */
-    function hasMetadata($name);
-
-    /**
-     * @param string $name
-     *
-     * @return \Doctrine\ORM\Mapping\ClassMetadataInfo
-     */
-    function getMetadata($name);
-
     /**
      * Returns a new FieldDescription
      *
@@ -258,4 +242,13 @@ interface ModelManagerInterface
      * @return mixed
      */
     function getPaginationParameters(DatagridInterface $datagrid, $page);
+
+    /**
+     * @param string                                           $class
+     * @param \Sonata\AdminBundle\Datagrid\ProxyQueryInterface $query
+     * @param array                                            $idx
+     *
+     * @return void
+     */
+    function addIdentifiersToQuery($class, ProxyQueryInterface $query, $idx);
 }