mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-22 20:16:12 +01:00
BUGFIX: Fetch record to update
This commit is contained in:
parent
4b26799e7f
commit
fe754964fe
1 changed files with 4 additions and 1 deletions
|
@ -83,7 +83,10 @@ class TcaIndexer extends AbstractIndexer
|
||||||
*/
|
*/
|
||||||
protected function getRecord($identifier)
|
protected function getRecord($identifier)
|
||||||
{
|
{
|
||||||
$record = $this->getQuery()->execute()->fetch();
|
$query = $this->getQuery();
|
||||||
|
$query = $query->andWhere($this->tcaTableService->getTableName() . '.uid = ' . (int) $identifier);
|
||||||
|
$record = $query->execute()->fetch();
|
||||||
|
|
||||||
|
|
||||||
if ($record === false || $record === null) {
|
if ($record === false || $record === null) {
|
||||||
throw new NoRecordFoundException(
|
throw new NoRecordFoundException(
|
||||||
|
|
Loading…
Reference in a new issue