@@ -2,18 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace Doctrine\ODM\CouchDB; |
4 | 4 | |
5 | -use Doctrine\Common\Cache\Cache; |
|
6 | -use Doctrine\Common\Persistence\Mapping\Driver\MappingDriver; |
|
7 | - |
|
8 | -use Doctrine\CouchDB\HTTP\Client; |
|
9 | -use Doctrine\CouchDB\HTTP\SocketClient; |
|
10 | -use Doctrine\CouchDB\HTTP\LoggingClient; |
|
11 | - |
|
12 | -use Doctrine\ODM\CouchDB\Mapping\MetadataResolver\MetadataResolver; |
|
13 | -use Doctrine\ODM\CouchDB\Mapping\MetadataResolver\DoctrineResolver; |
|
14 | -use Doctrine\ODM\CouchDB\Migrations\DocumentMigration; |
|
15 | -use Doctrine\ODM\CouchDB\Proxy\ProxyFactory; |
|
16 | -use ProxyManager\Configuration as ProxyManagerConfiguration; |
|
5 | +use Doctrine\Common\Cache\Cache; |
|
6 | +use Doctrine\Common\Persistence\Mapping\Driver\MappingDriver; |
|
7 | +use Doctrine\ODM\CouchDB\Mapping\MetadataResolver\MetadataResolver; |
|
8 | +use Doctrine\ODM\CouchDB\Mapping\MetadataResolver\DoctrineResolver; |
|
9 | +use Doctrine\ODM\CouchDB\Migrations\DocumentMigration; |
|
10 | +use Doctrine\ODM\CouchDB\Proxy\ProxyFactory; |
|
11 | +use ProxyManager\Configuration as ProxyManagerConfiguration; |
|
17 | 12 | use ProxyManager\Factory\LazyLoadingGhostFactory; |
18 | 13 | |
19 | 14 | /** |
@@ -2,14 +2,14 @@ |
||
2 | 2 | |
3 | 3 | namespace Doctrine\ODM\CouchDB; |
4 | 4 | |
5 | -use Doctrine\Common\EventManager; |
|
6 | -use Doctrine\Common\Persistence\ObjectManager; |
|
7 | -use Doctrine\CouchDB\CouchDBClient; |
|
8 | -use Doctrine\CouchDB\View; |
|
9 | -use Doctrine\CouchDB\View\Query; |
|
10 | -use Doctrine\ODM\CouchDB\Mapping\ClassMetadataFactory; |
|
11 | -use Doctrine\ODM\CouchDB\View\ODMQuery; |
|
12 | -use Doctrine\ODM\CouchDB\View\ODMLuceneQuery; |
|
5 | +use Doctrine\Common\EventManager; |
|
6 | +use Doctrine\Common\Persistence\ObjectManager; |
|
7 | +use Doctrine\CouchDB\CouchDBClient; |
|
8 | +use Doctrine\CouchDB\View; |
|
9 | +use Doctrine\CouchDB\View\Query; |
|
10 | +use Doctrine\ODM\CouchDB\Mapping\ClassMetadataFactory; |
|
11 | +use Doctrine\ODM\CouchDB\View\ODMQuery; |
|
12 | +use Doctrine\ODM\CouchDB\View\ODMLuceneQuery; |
|
13 | 13 | use Doctrine\ODM\CouchDB\CouchDBException; |
14 | 14 | |
15 | 15 | class DocumentManager implements ObjectManager |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Doctrine\ODM\CouchDB\Mapping; |
4 | 4 | |
5 | -use Doctrine\Common\Persistence\Mapping\ClassMetadata AS IClassMetadata, |
|
6 | - Doctrine\Instantiator\Instantiator, |
|
7 | - ReflectionClass, |
|
8 | - ReflectionProperty; |
|
5 | +use Doctrine\Common\Persistence\Mapping\ClassMetadata as IClassMetadata; |
|
6 | +use Doctrine\Instantiator\Instantiator; |
|
7 | +use ReflectionClass; |
|
8 | +use ReflectionProperty; |
|
9 | 9 | |
10 | 10 | /** |
11 | 11 | * Metadata class |
@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace Doctrine\ODM\CouchDB\Mapping; |
4 | 4 | |
5 | -use Doctrine\ODM\CouchDB\DocumentManager, |
|
6 | - Doctrine\Common\Persistence\Mapping\Driver\MappingDriver, |
|
7 | - Doctrine\Common\Persistence\Mapping\ClassMetadata as ClassMetadataInterface, |
|
8 | - Doctrine\Common\Persistence\Mapping\ReflectionService, |
|
9 | - Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory; |
|
5 | +use Doctrine\ODM\CouchDB\DocumentManager; |
|
6 | +use Doctrine\Common\Persistence\Mapping\Driver\MappingDriver; |
|
7 | +use Doctrine\Common\Persistence\Mapping\ClassMetadata as ClassMetadataInterface; |
|
8 | +use Doctrine\Common\Persistence\Mapping\ReflectionService; |
|
9 | +use Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory; |
|
10 | 10 | |
11 | 11 | /** |
12 | 12 | * The ClassMetadataFactory is used to create ClassMetadata objects that contain all the |
@@ -2,13 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Doctrine\ODM\CouchDB\Mapping\Driver; |
4 | 4 | |
5 | -use Doctrine\Common\Annotations\AnnotationReader, |
|
6 | - Doctrine\Common\Annotations\AnnotationRegistry, |
|
7 | - Doctrine\Common\Annotations\Reader, |
|
8 | - Doctrine\Common\Persistence\Mapping\ClassMetadata, |
|
9 | - Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver as AbstractAnnotationDriver, |
|
10 | - Doctrine\ODM\CouchDB\Mapping\Annotations as ODM, |
|
11 | - Doctrine\ODM\CouchDB\Mapping\MappingException; |
|
5 | +use Doctrine\Common\Persistence\Mapping\ClassMetadata; |
|
6 | +use Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver as AbstractAnnotationDriver; |
|
7 | +use Doctrine\ODM\CouchDB\Mapping\Annotations as ODM; |
|
8 | +use Doctrine\ODM\CouchDB\Mapping\MappingException; |
|
12 | 9 | |
13 | 10 | /** |
14 | 11 | * The AnnotationDriver reads the mapping metadata from docblock annotations. |
@@ -2,11 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Doctrine\ODM\CouchDB\Mapping\Driver; |
4 | 4 | |
5 | -use Doctrine\Common\Persistence\Mapping\Driver\FileDriver, |
|
6 | - Doctrine\Common\Persistence\Mapping\ClassMetadata, |
|
7 | - Doctrine\ODM\CouchDB\Mapping\MappingException, |
|
8 | - Doctrine\Common\Persistence\Mapping\MappingException as DoctrineMappingException, |
|
9 | - SimpleXmlElement; |
|
5 | +use Doctrine\Common\Persistence\Mapping\Driver\FileDriver; |
|
6 | +use Doctrine\Common\Persistence\Mapping\ClassMetadata; |
|
7 | +use Doctrine\ODM\CouchDB\Mapping\MappingException; |
|
8 | +use Doctrine\Common\Persistence\Mapping\MappingException as DoctrineMappingException; |
|
10 | 9 | |
11 | 10 | /** |
12 | 11 | * XmlDriver is a metadata driver that enables mapping through XML files. |
@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace Doctrine\ODM\CouchDB\Mapping\Driver; |
4 | 4 | |
5 | -use Doctrine\Common\Persistence\Mapping\Driver\FileDriver, |
|
6 | - Doctrine\Common\Persistence\Mapping\ClassMetadata, |
|
7 | - Doctrine\ODM\CouchDB\Mapping\MappingException, |
|
8 | - Doctrine\Common\Persistence\Mapping\MappingException as DoctrineMappingException, |
|
9 | - Symfony\Component\Yaml\Yaml; |
|
5 | +use Doctrine\Common\Persistence\Mapping\Driver\FileDriver; |
|
6 | +use Doctrine\Common\Persistence\Mapping\ClassMetadata; |
|
7 | +use Doctrine\ODM\CouchDB\Mapping\MappingException; |
|
8 | +use Doctrine\Common\Persistence\Mapping\MappingException as DoctrineMappingException; |
|
9 | +use Symfony\Component\Yaml\Yaml; |
|
10 | 10 | |
11 | 11 | /** |
12 | 12 | * The YamlDriver reads the mapping metadata from yaml schema files. |
@@ -2,9 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Doctrine\ODM\CouchDB\Mapping; |
4 | 4 | |
5 | -use Doctrine\Common\Collections\ArrayCollection; |
|
6 | -use Doctrine\ODM\CouchDB\Mapping\ClassMetadata; |
|
7 | -use Doctrine\ODM\CouchDB\Types\Type; |
|
5 | +use Doctrine\Common\Collections\ArrayCollection; |
|
6 | +use Doctrine\ODM\CouchDB\Types\Type; |
|
8 | 7 | use Doctrine\Common\Util\ClassUtils; |
9 | 8 | |
10 | 9 | /** |
@@ -3,9 +3,9 @@ |
||
3 | 3 | |
4 | 4 | namespace Doctrine\ODM\CouchDB\Mapping\MetadataResolver; |
5 | 5 | |
6 | -use Doctrine\ODM\CouchDB\Mapping\ClassMetadata; |
|
7 | -use Doctrine\ODM\CouchDB\DocumentManager; |
|
8 | -use Doctrine\ODM\CouchDB\PersistentIdsCollection; |
|
6 | +use Doctrine\ODM\CouchDB\Mapping\ClassMetadata; |
|
7 | +use Doctrine\ODM\CouchDB\DocumentManager; |
|
8 | +use Doctrine\ODM\CouchDB\PersistentIdsCollection; |
|
9 | 9 | use Doctrine\Common\Collections\ArrayCollection; |
10 | 10 | |
11 | 11 | class DoctrineResolver implements MetadataResolver |