1313 * source code.
1414 */
1515
16- use Doctrine \Common \Persistence \ObjectManager ;
17- use Doctrine \ORM \EntityManager ;
1816use Doctrine \ORM \EntityManagerInterface ;
1917use Doctrine \ORM \Internal \Hydration \IterableResult ;
20- use Doctrine \ORM \QueryBuilder ;
2118use Flowpack \ElasticSearch \ContentRepositoryAdaptor \Service \NodeTypeIndexingConfiguration ;
2219use Neos \ContentRepository \Domain \Model \NodeData ;
2320use Neos \Flow \Annotations as Flow ;
@@ -44,14 +41,13 @@ class NodeDataRepository extends Repository
4441
4542 /**
4643 * @param string $workspaceName
47- * @param string $lastPOI
44+ * @param string|null $lastPersistenceObjectIdentifier
4845 * @param int $maxResults
4946 * @return IterableResult
5047 * @throws \Flowpack\ElasticSearch\ContentRepositoryAdaptor\Exception
5148 */
52- public function findAllBySiteAndWorkspace (string $ workspaceName , string $ lastPOI = null , int $ maxResults = 1000 ): IterableResult
49+ public function findAllBySiteAndWorkspace (string $ workspaceName , string $ lastPersistenceObjectIdentifier = null , int $ maxResults = 1000 ): IterableResult
5350 {
54- /** @var QueryBuilder $queryBuilder */
5551 $ queryBuilder = $ this ->entityManager ->createQueryBuilder ();
5652 $ queryBuilder ->select ('n.Persistence_Object_Identifier persistenceObjectIdentifier, n.identifier identifier, n.dimensionValues dimensions, n.nodeType nodeType, n.path path ' )
5753 ->from (NodeData::class, 'n ' )
@@ -63,15 +59,15 @@ public function findAllBySiteAndWorkspace(string $workspaceName, string $lastPOI
6359 ])
6460 ->orderBy ('n.Persistence_Object_Identifier ' );
6561
66- if (!empty ($ lastPOI )) {
67- $ queryBuilder ->andWhere ($ queryBuilder ->expr ()->gt ('n.Persistence_Object_Identifier ' , $ queryBuilder ->expr ()->literal ($ lastPOI )));
62+ if (!empty ($ lastPersistenceObjectIdentifier )) {
63+ $ queryBuilder ->andWhere ($ queryBuilder ->expr ()->gt ('n.Persistence_Object_Identifier ' , $ queryBuilder ->expr ()->literal ($ lastPersistenceObjectIdentifier )));
6864 }
6965
70- $ excludedNodeTypes = array_keys (array_filter ($ this ->nodeTypeIndexingConfiguration ->getIndexableConfiguration (), static function ($ value ) {
66+ $ excludedNodeTypes = array_keys (array_filter ($ this ->nodeTypeIndexingConfiguration ->getIndexableConfiguration (), static function ($ value ) {
7167 return !$ value ;
7268 }));
7369
74- if (!empty ($ excludedNodeTypes )) {
70+ if (!empty ($ excludedNodeTypes )) {
7571 $ queryBuilder ->andWhere ($ queryBuilder ->expr ()->notIn ('n.nodeType ' , $ excludedNodeTypes ));
7672 }
7773
0 commit comments