@@ -249,7 +249,7 @@ |
||
| 249 | 249 | * @param string $_id |
| 250 | 250 | * @param array $mergeParams |
| 251 | 251 | * @param array|null $return |
| 252 | - * @return array|null |
|
| 252 | + * @return null|callable |
|
| 253 | 253 | */ |
| 254 | 254 | public function get($index, $type, $_id, array $mergeParams = [], array &$return = null) { |
| 255 | 255 | if (!$this->indexExists($index)) { |
@@ -47,6 +47,9 @@ |
||
| 47 | 47 | $this->validateEntity($classMetadata->name); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | + /** |
|
| 51 | + * @param string $className |
|
| 52 | + */ |
|
| 50 | 53 | private function validateEntity($className) { |
| 51 | 54 | $type = $this->annotationReader->getClassAnnotation($this->class->getReflectionClass(), Type::class); |
| 52 | 55 | |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | use DoctrineElastic\Mapping\Type; |
| 16 | 16 | use DoctrineElastic\Query\Walker\Helper\WalkerHelper; |
| 17 | 17 | use DoctrineElastic\Query\Walker\WhereWalker; |
| 18 | -use DoctrineElastic\Service\ElasticSearchService; |
|
| 19 | 18 | |
| 20 | 19 | /** |
| 21 | 20 | * Main walker for queries |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | use Doctrine\ORM\Query\AST\Node; |
| 16 | 16 | use Doctrine\ORM\Query\AST\NullComparisonExpression; |
| 17 | 17 | use Doctrine\ORM\Query\AST\PathExpression; |
| 18 | -use Doctrine\ORM\Query\AST\SimpleArithmeticExpression; |
|
| 19 | 18 | use Doctrine\ORM\Query\AST\WhereClause; |
| 20 | 19 | use DoctrineElastic\Elastic\ElasticQuery; |
| 21 | 20 | use DoctrineElastic\Elastic\SearchParams; |