Przeglądaj źródła

update ModelManagerInterface

* add ModelManagerInterface::addIdentifiersToQuery
* remove ModelManagerInterface::hasMetadata
* remove ModelManagerInterface::getMetadata
Toni Uebernickel 13 lat temu
rodzic
commit
c665888c21
1 zmienionych plików z 9 dodań i 16 usunięć
  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);
 }