File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Service/SearchIndex/IndexService/ElementTypeAdapter Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,6 @@ public function deleteDocument(DocumentEvent $event): void
7777 processSynchronously: $ this ->synchronousProcessing ->isEnabled ()
7878 )
7979 ->commit ();
80-
80+ $ this -> queueMessagesDispatcher -> dispatchQueueMessages ();
8181 }
8282}
Original file line number Diff line number Diff line change @@ -86,6 +86,16 @@ public function getRelatedItemsOnUpdateQuery(
8686 int $ operationTime ,
8787 bool $ includeElement = false
8888 ): ?QueryBuilder {
89- return $ this ->dbConnection ->createQueryBuilder ();
89+ return $ this ->dbConnection ->createQueryBuilder ()
90+ ->select ([
91+ $ element ->getId (),
92+ "' " . ElementType::DOCUMENT ->value . "' " ,
93+ "' " . IndexName::DOCUMENT ->value . "' " ,
94+ "' $ operation' " ,
95+ "' $ operationTime' " ,
96+ '0 ' ,
97+ ])
98+ ->from ('DUAL ' ) // just a dummy query to fit into the query builder interface
99+ ->setMaxResults (1 );
90100 }
91101}
You can’t perform that action at this time.
0 commit comments