@@ -13,17 +13,11 @@ |
||
13 | 13 | use PHPUnit\Framework\TestCase; |
14 | 14 | use Addiks\RDMBundle\Hydration\EntityHydrator; |
15 | 15 | use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface; |
16 | -use Addiks\RDMBundle\Mapping\Annotation\Service; |
|
17 | 16 | use Addiks\RDMBundle\Tests\Hydration\ServiceExample; |
18 | 17 | use Addiks\RDMBundle\Tests\Hydration\EntityExample; |
19 | -use ErrorException; |
|
20 | -use Addiks\RDMBundle\Mapping\ServiceMapping; |
|
21 | 18 | use Addiks\RDMBundle\Mapping\EntityMapping; |
22 | -use Addiks\RDMBundle\ValueResolver\ValueResolverInterface; |
|
23 | -use Addiks\RDMBundle\Exception\FailedRDMAssertionExceptionInterface; |
|
24 | 19 | use Addiks\RDMBundle\DataLoader\DataLoaderInterface; |
25 | 20 | use Doctrine\ORM\EntityManagerInterface; |
26 | -use Addiks\RDMBundle\Mapping\EntityMappingInterface; |
|
27 | 21 | use Addiks\RDMBundle\Mapping\MappingInterface; |
28 | 22 | use Addiks\RDMBundle\Hydration\HydrationContextInterface; |
29 | 23 | use Symfony\Component\DependencyInjection\ContainerInterface; |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use Addiks\RDMBundle\Mapping\ArrayMapping; |
15 | 15 | use Addiks\RDMBundle\Mapping\MappingInterface; |
16 | 16 | use Doctrine\DBAL\Schema\Column; |
17 | -use InvalidArgumentException; |
|
18 | 17 | use Addiks\RDMBundle\Hydration\HydrationContextInterface; |
19 | 18 | use Addiks\RDMBundle\Tests\Hydration\EntityExample; |
20 | 19 | use Addiks\RDMBundle\Exception\FailedRDMAssertionExceptionInterface; |
@@ -37,6 +37,9 @@ |
||
37 | 37 | */ |
38 | 38 | private $optionMappingB; |
39 | 39 | |
40 | + /** |
|
41 | + * @param string $column |
|
42 | + */ |
|
40 | 43 | public function setUp( |
41 | 44 | $column = null |
42 | 45 | ) { |
@@ -12,9 +12,6 @@ |
||
12 | 12 | |
13 | 13 | use PHPUnit\Framework\TestCase; |
14 | 14 | use Addiks\RDMBundle\Tests\Hydration\EntityExample; |
15 | -use Addiks\RDMBundle\Mapping\Annotation\Service; |
|
16 | -use ReflectionProperty; |
|
17 | -use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface; |
|
18 | 15 | use Addiks\RDMBundle\Mapping\Drivers\MappingStaticPHPDriver; |
19 | 16 | use Addiks\RDMBundle\Mapping\EntityMapping; |
20 | 17 | use Addiks\RDMBundle\Mapping\ServiceMapping; |
@@ -112,10 +112,10 @@ |
||
112 | 112 | $callee = $context->getEntity(); |
113 | 113 | |
114 | 114 | } elseif (in_array($objectReference, ['self', 'this'])) { |
115 | - $callee = $hydrationStack[count($hydrationStack)-1]; |
|
115 | + $callee = $hydrationStack[count($hydrationStack) - 1]; |
|
116 | 116 | |
117 | 117 | } elseif (in_array($objectReference, ['parent'])) { |
118 | - $callee = $hydrationStack[count($hydrationStack)-2]; |
|
118 | + $callee = $hydrationStack[count($hydrationStack) - 2]; |
|
119 | 119 | |
120 | 120 | } elseif ($objectReference[0] === '@') { |
121 | 121 | /** @var string $serviceId */ |
@@ -40,7 +40,6 @@ |
||
40 | 40 | use Symfony\Component\HttpKernel\KernelInterface; |
41 | 41 | use Addiks\RDMBundle\Mapping\NullableMapping; |
42 | 42 | use Addiks\RDMBundle\Mapping\NullableMappingInterface; |
43 | -use Symfony\Component\DependencyInjection\ContainerInterface; |
|
44 | 43 | use Addiks\RDMBundle\Mapping\MappingProxy; |
45 | 44 | |
46 | 45 | final class MappingXmlDriver implements MappingDriverInterface |