Browse files

Fix access level violation

The getLoader interface has changed and this causes immediate breakage (even upon something simple like php app/console).

I've updated it here, fixed up the doc comment (now correctly indicates that this will immediately throw an exception).
  • Loading branch information...
1 parent e80b0b2 commit ce6ad877558d7d09354203cdb5706fe3635e2bcc @saem saem committed with Saem Ghani Sep 24, 2012
Showing with 8 additions and 3 deletions.
  1. +8 −3 Form/Type/DocumentType.php
View
11 Form/Type/DocumentType.php
@@ -17,17 +17,22 @@
use Doctrine\Common\Persistence\ObjectManager;
use Symfony\Bridge\Doctrine\Form\Type\DoctrineType;
use Symfony\Component\Form\Exception\FormException;
+use Symfony\Bridge\Doctrine\Form\ChoiceList\EntityLoaderInterface;
class DocumentType extends DoctrineType
{
/**
- * Return the loader object.
+ * CouchDB does not support the queryBuilder, will throw a FormException upon invocation
*
* @param ObjectManager $manager
- * @param array $options
+ * @param mixed $queryBuilder
+ * @param string $class
+ *
* @return EntityLoaderInterface
+ *
+ * @throws FormException
*/
- protected function getLoader(ObjectManager $manager, array $options)
+ public function getLoader(ObjectManager $manager, $queryBuilder, $class)
{
throw new FormException('The query builder option is not supported by CouchDB.');
}

0 comments on commit ce6ad87

Please sign in to comment.