refactor api/UserResponse

This commit is contained in:
iironside committed 2022-03-15 16:54:34 +03:00
1 parent 675d78b958
commit a5ef1d5008
5 files changed
+100 -81

No files matched your search

-4
View File
@@ -19,11 +19,7 @@ class TemplateService
public static function getTemplateWithFields($template_id): array
{
return Template::find()
// ->select('title')
->joinWith('templateDocumentFields.field')
// ->with([
// 'fields' => function ($query) { $query->select(['id', 'title', 'field_template']); }
// ])
->where(['template.id' => $template_id])
->asArray()
->one();