@@ -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 */ |
@@ -35,7 +35,6 @@ |
||
35 | 35 | use Addiks\RDMBundle\Mapping\MappingProxy; |
36 | 36 | use Addiks\RDMBundle\Exception\InvalidMappingException; |
37 | 37 | use Symfony\Component\HttpKernel\KernelInterface; |
38 | -use Symfony\Component\DependencyInjection\ContainerInterface; |
|
39 | 38 | |
40 | 39 | final class MappingXmlDriver implements MappingDriverInterface |
41 | 40 | { |