Merge pull request #8412 from righel/reduce-attributes-restsearch-memory-tags-filter

fix: do not fetch tag related entities
pull/8417/head
Jakub Onderka 2022-05-29 09:25:00 +02:00 committed by GitHub
commit aef24f2bd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ class Tag extends AppModel
$conditions[] = array('Tag.name LIKE' => $tagName);
}
$result = $this->find('column', array(
'recursive' => 1,
'recursive' => -1,
'conditions' => ['OR' => $conditions],
'fields' => array('Tag.id')
));