@@ -133,7 +133,6 @@ |
||
| 133 | 133 | * @param string $operationName |
| 134 | 134 | * @param array $operation |
| 135 | 135 | * @param string $resourceShortName |
| 136 | - * @param bool $collection |
|
| 137 | 136 | * |
| 138 | 137 | * @throws RuntimeException |
| 139 | 138 | */ |
@@ -37,9 +37,6 @@ |
||
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * @param ManagerRegistry $managerRegistry |
| 40 | - * @param PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory |
|
| 41 | - * @param PropertyMetadataFactoryInterface $propertyMetadataFactory |
|
| 42 | - * @param QueryItemExtensionInterface[] $itemExtensions |
|
| 43 | 40 | */ |
| 44 | 41 | public function __construct(ManagerRegistry $managerRegistry, IdentifiersHelper $identifiersHelper, array $collectionExtensions = []) |
| 45 | 42 | { |
@@ -12,17 +12,13 @@ |
||
| 12 | 12 | namespace ApiPlatform\Core\Bridge\Doctrine\Orm; |
| 13 | 13 | |
| 14 | 14 | use ApiPlatform\Core\Bridge\Doctrine\Orm\Extension\QueryItemExtensionInterface; |
| 15 | -use ApiPlatform\Core\Bridge\Doctrine\Orm\Extension\QueryResultItemExtensionInterface; |
|
| 16 | 15 | use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\IdentifiersHelper; |
| 17 | 16 | use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGenerator; |
| 18 | 17 | use ApiPlatform\Core\DataProvider\SubcollectionDataProviderInterface; |
| 19 | -use ApiPlatform\Core\Exception\PropertyNotFoundException; |
|
| 20 | 18 | use ApiPlatform\Core\Exception\ResourceClassNotSupportedException; |
| 21 | 19 | use ApiPlatform\Core\Exception\RuntimeException; |
| 22 | 20 | use Doctrine\Common\Persistence\ManagerRegistry; |
| 23 | -use Doctrine\Common\Persistence\ObjectManager; |
|
| 24 | 21 | use Doctrine\ORM\EntityManagerInterface; |
| 25 | -use Doctrine\ORM\QueryBuilder; |
|
| 26 | 22 | |
| 27 | 23 | /** |
| 28 | 24 | * Subcollection data provider for the Doctrine ORM. |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use ApiPlatform\Core\Metadata\Property\Factory\PropertyMetadataFactoryInterface; |
| 15 | 15 | use ApiPlatform\Core\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface; |
| 16 | 16 | use Doctrine\Common\Persistence\ObjectManager; |
| 17 | -use Doctrine\ORM\QueryBuilder; |
|
| 18 | 17 | |
| 19 | 18 | /** |
| 20 | 19 | * Tools that helps managing Identifiers (composite or regular) and related where clauses |
@@ -42,8 +42,8 @@ |
||
| 42 | 42 | { |
| 43 | 43 | $result = [ |
| 44 | 44 | 'resource_class' => $request->attributes->get('_api_resource_class'), |
| 45 | - 'subcollection_property' => $request->attributes->get('_api_subcollection_property_name'), |
|
| 46 | - 'subcollection_resource_class' => $request->attributes->get('_api_subcollection_resource_class') |
|
| 45 | + 'subcollection_property' => $request->attributes->get('_api_subcollection_property_name'), |
|
| 46 | + 'subcollection_resource_class' => $request->attributes->get('_api_subcollection_resource_class') |
|
| 47 | 47 | ]; |
| 48 | 48 | |
| 49 | 49 | if (null === $result['resource_class']) { |