refactor api/UserResponse
This commit is contained in:
1 parent
675d78b958
commit
a5ef1d5008
5 files changed
+100
-81
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user