@@ -8,7 +8,6 @@ |
||
8 | 8 | use Doctrine\ODM\CouchDB\Configuration; |
9 | 9 | use Doctrine\ODM\CouchDB\Mapping\Driver\AnnotationDriver; |
10 | 10 | use Doctrine\Common\Cache\ArrayCache; |
11 | -use Doctrine\Common\Annotations\AnnotationReader; |
|
12 | 11 | |
13 | 12 | abstract class CouchDBFunctionalTestCase extends \PHPUnit_Framework_TestCase |
14 | 13 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | |
4 | 4 | use Doctrine\Tests\Models\Embedded\Embedded; |
5 | 5 | use Doctrine\Tests\Models\Embedded\Embedder; |
6 | -use Doctrine\Tests\Models\Embedded\Nested; |
|
7 | 6 | |
8 | 7 | class EmbedManyTest extends \Doctrine\Tests\ODM\CouchDB\CouchDBFunctionalTestCase |
9 | 8 | { |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Doctrine\ODM\CouchDB\UnitOfWork; |
6 | 6 | use Doctrine\ODM\CouchDB\Mapping\ClassMetadata; |
7 | 7 | use Doctrine\ODM\CouchDB\Id\idGenerator; |
8 | - |
|
9 | 8 | use Doctrine\Common\Persistence\Mapping\RuntimeReflectionService; |
10 | 9 | |
11 | 10 | class UnitOfWorkTest extends CouchDBTestCase |
@@ -2,10 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Doctrine\Tests\ODM\CouchDB\View; |
4 | 4 | |
5 | -use Doctrine\CouchDB\HTTP\SocketClient; |
|
6 | 5 | use Doctrine\CouchDB\View\Query; |
7 | 6 | use Doctrine\ODM\CouchDB\View\DoctrineAssociations; |
8 | -use Doctrine\ODM\CouchDB\Mapping\ClassMetadata; |
|
9 | 7 | use Doctrine\Tests\ODM\CouchDB\CouchDBFunctionalTestCase; |
10 | 8 | |
11 | 9 | class DoctrineAssociationsTest extends CouchDBFunctionalTestCase |
@@ -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. |