Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Fix access level violation #17

Merged
merged 1 commit into from Sep 26, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 8 additions & 3 deletions Form/Type/DocumentType.php
Expand Up @@ -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.');
}
Expand Down