@@ -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 | { |
@@ -65,6 +65,9 @@ |
||
65 | 65 | return new \Doctrine\ODM\CouchDB\Mapping\Driver\AnnotationDriver($reader); |
66 | 66 | } |
67 | 67 | |
68 | + /** |
|
69 | + * @param string $entityClassName |
|
70 | + */ |
|
68 | 71 | protected function ensureIsLoaded($entityClassName) |
69 | 72 | { |
70 | 73 | new $entityClassName; |
@@ -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 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | } |
19 | 19 | |
20 | 20 | /** |
21 | - * @return NativeQuery |
|
21 | + * @return Query |
|
22 | 22 | */ |
23 | 23 | protected function createDoctrineViewQuery() |
24 | 24 | { |
@@ -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 |
@@ -19,10 +19,10 @@ |
||
19 | 19 | |
20 | 20 | namespace Doctrine\ODM\CouchDB\Tools\Console\Command; |
21 | 21 | |
22 | -use Symfony\Component\Console\Input\InputArgument, |
|
23 | - Symfony\Component\Console\Input\InputOption, |
|
24 | - Symfony\Component\Console, |
|
25 | - Doctrine\ODM\CouchDB\Tools\Console\MetadataFilter; |
|
22 | +use Symfony\Component\Console\Input\InputArgument; |
|
23 | +use Symfony\Component\Console\Input\InputOption; |
|
24 | +use Symfony\Component\Console; |
|
25 | +use Doctrine\ODM\CouchDB\Tools\Console\MetadataFilter; |
|
26 | 26 | |
27 | 27 | /** |
28 | 28 | * Command to (re)generate the proxy classes used by doctrine. |
@@ -19,11 +19,10 @@ |
||
19 | 19 | |
20 | 20 | namespace Doctrine\ODM\CouchDB\Tools\Console\Command; |
21 | 21 | |
22 | -use Symfony\Component\Console\Input\InputArgument, |
|
23 | - Symfony\Component\Console\Input\InputOption, |
|
24 | - Symfony\Component\Console\Input\InputInterface, |
|
25 | - Symfony\Component\Console\Output\OutputInterface, |
|
26 | - Symfony\Component\Console\Command\Command; |
|
22 | +use Symfony\Component\Console\Input\InputArgument; |
|
23 | +use Symfony\Component\Console\Input\InputInterface; |
|
24 | +use Symfony\Component\Console\Output\OutputInterface; |
|
25 | +use Symfony\Component\Console\Command\Command; |
|
27 | 26 | |
28 | 27 | class UpdateDesignDocCommand extends Command |
29 | 28 | { |
@@ -169,7 +169,7 @@ |
||
169 | 169 | * is still not loaded. |
170 | 170 | * |
171 | 171 | * @param string $className The name of the class for which the metadata should get loaded. |
172 | - * @return array |
|
172 | + * @return string[] |
|
173 | 173 | * @throws MappingException |
174 | 174 | */ |
175 | 175 | protected function loadMetadata($className) |
@@ -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 |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | /** |
259 | 259 | * Refresh the given document by querying the CouchDB to get the current state. |
260 | 260 | * |
261 | - * @param object $document |
|
261 | + * @param \ProxyManager\Proxy\GhostObjectInterface $document |
|
262 | 262 | */ |
263 | 263 | public function refresh($document) |
264 | 264 | { |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | } |
304 | 304 | |
305 | 305 | /** |
306 | - * @param object $document |
|
306 | + * @param \Doctrine\Tests\Models\CMS\CmsUser $document |
|
307 | 307 | * @return bool |
308 | 308 | */ |
309 | 309 | public function contains($document) |
@@ -10,12 +10,7 @@ |
||
10 | 10 | use Doctrine\ODM\CouchDB\UnitOfWork; |
11 | 11 | use Doctrine\ODM\CouchDB\Mapping\ClassMetadata; |
12 | 12 | use Doctrine\ODM\CouchDB\Mapping\ClassMetadataFactory; |
13 | - |
|
14 | -use Doctrine\Tests\Models\ECommerce\ECommerceCart; |
|
15 | -use Doctrine\Tests\Models\ECommerce\ECommerceCustomer; |
|
16 | 13 | use Doctrine\Tests\Models\ECommerce\ECommerceFeature; |
17 | -use Doctrine\Tests\Models\ECommerce\ECommerceProduct; |
|
18 | -use Doctrine\Tests\Models\ECommerce\ECommerceShipping; |
|
19 | 14 | use ProxyManager\Proxy\GhostObjectInterface; |
20 | 15 | |
21 | 16 | /** |