fix: [component:CRUD] Removed deprecation notice when trying to extract without requesting the collection

cli-modification-summary
Sami Mokaddem 2022-06-08 11:56:09 +02:00
parent 8c4c75d83a
commit fa68d62890
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 0 deletions

View File

@ -1480,6 +1480,7 @@ class CRUDComponent extends Component
}
return $query->select([$field])
->distinct()
->all()
->extract($fieldToExtract)
->toList();
}