@@ -241,6 +241,9 @@ discard block |
||
| 241 | 241 | $this->clear($entity); |
| 242 | 242 | } |
| 243 | 243 | |
| 244 | + /** |
|
| 245 | + * @param string $className |
|
| 246 | + */ |
|
| 244 | 247 | public function executeInserts($className) { |
| 245 | 248 | $persister = $this->getEntityPersister($className); |
| 246 | 249 | |
@@ -256,6 +259,9 @@ discard block |
||
| 256 | 259 | $persister->executeInserts(); |
| 257 | 260 | } |
| 258 | 261 | |
| 262 | + /** |
|
| 263 | + * @param string $className |
|
| 264 | + */ |
|
| 259 | 265 | public function executeUpdates($className) { |
| 260 | 266 | $persister = $this->getEntityPersister($className); |
| 261 | 267 | |
@@ -269,6 +275,9 @@ discard block |
||
| 269 | 275 | } |
| 270 | 276 | } |
| 271 | 277 | |
| 278 | + /** |
|
| 279 | + * @param string $className |
|
| 280 | + */ |
|
| 272 | 281 | public function executeDeletions($className) { |
| 273 | 282 | $persister = $this->getEntityPersister($className); |
| 274 | 283 | |
@@ -45,6 +45,9 @@ discard block |
||
| 45 | 45 | /** @var \ReflectionClass */ |
| 46 | 46 | private $reflectionClass; |
| 47 | 47 | |
| 48 | + /** |
|
| 49 | + * @param string $className |
|
| 50 | + */ |
|
| 48 | 51 | public function __construct(ElasticEntityManager $em, $className) { |
| 49 | 52 | $this->className = $className; |
| 50 | 53 | $this->annotationReader = new AnnotationReader(); |
@@ -85,6 +88,9 @@ discard block |
||
| 85 | 88 | } |
| 86 | 89 | } |
| 87 | 90 | |
| 91 | + /** |
|
| 92 | + * @param integer $offset |
|
| 93 | + */ |
|
| 88 | 94 | public function loadAll(array $criteria = [], array $orderBy = null, $limit = null, $offset = null) { |
| 89 | 95 | $type = $this->getEntityType(); |
| 90 | 96 | $sort = $must = []; |
@@ -297,6 +303,9 @@ discard block |
||
| 297 | 303 | } |
| 298 | 304 | } |
| 299 | 305 | |
| 306 | + /** |
|
| 307 | + * @param integer $limit |
|
| 308 | + */ |
|
| 300 | 309 | public function load( |
| 301 | 310 | array $criteria, $entity = null, $assoc = null, array $hints = [], |
| 302 | 311 | $lockMode = null, $limit = null, array $orderBy = null |
@@ -36,6 +36,9 @@ discard block |
||
| 36 | 36 | /** @var SelectStatement */ |
| 37 | 37 | private $_ast; |
| 38 | 38 | |
| 39 | + /** |
|
| 40 | + * @param string $className |
|
| 41 | + */ |
|
| 39 | 42 | public function __construct(ElasticQuery $query, SelectStatement $AST, $className) { |
| 40 | 43 | $this->query = $query; |
| 41 | 44 | $this->walkerHelper = new WalkerHelper(); |
@@ -126,7 +129,7 @@ discard block |
||
| 126 | 129 | |
| 127 | 130 | /** |
| 128 | 131 | * @param $propertyName |
| 129 | - * @param $className |
|
| 132 | + * @param string $className |
|
| 130 | 133 | * @return Field |
| 131 | 134 | */ |
| 132 | 135 | private function getEntityElasticField($propertyName, $className) { |
@@ -133,6 +133,6 @@ |
||
| 133 | 133 | /** @var Field[] $fields */ |
| 134 | 134 | $fields = (new AnnotationEntityHydrator())->extractSpecAnnotations($className, Field::class); |
| 135 | 135 | |
| 136 | - return isset($fields[$propertyName]) ? $fields[$propertyName]: null; |
|
| 136 | + return isset($fields[$propertyName]) ? $fields[$propertyName] : null; |
|
| 137 | 137 | } |
| 138 | 138 | } |
@@ -1143,7 +1143,7 @@ discard block |
||
| 1143 | 1143 | * accessible is "FROM", prohibiting an easy implementation without larger |
| 1144 | 1144 | * changes.} |
| 1145 | 1145 | * |
| 1146 | - * @return \Doctrine\ORM\Query\AST\SubselectIdentificationVariableDeclaration | |
|
| 1146 | + * @return AST\IdentificationVariableDeclaration | |
|
| 1147 | 1147 | * \Doctrine\ORM\Query\AST\IdentificationVariableDeclaration |
| 1148 | 1148 | */ |
| 1149 | 1149 | public function SubselectIdentificationVariableDeclaration() { |
@@ -1279,7 +1279,7 @@ discard block |
||
| 1279 | 1279 | * PartialObjectExpression ::= "PARTIAL" IdentificationVariable "." PartialFieldSet |
| 1280 | 1280 | * PartialFieldSet ::= "{" SimpleStateField {"," SimpleStateField}* "}" |
| 1281 | 1281 | * |
| 1282 | - * @return array |
|
| 1282 | + * @return AST\PartialObjectExpression |
|
| 1283 | 1283 | */ |
| 1284 | 1284 | public function PartialObjectExpression() { |
| 1285 | 1285 | $this->match(Lexer::T_PARTIAL); |