Roll backup project user include

This commit is contained in:
David Bomba 2025-08-14 07:28:47 +10:00
parent 2899d5fce2
commit c0e7c399fb
1 changed files with 0 additions and 12 deletions

View File

@ -41,20 +41,8 @@ class ProjectTransformer extends EntityTransformer
'invoices',
'expenses',
'quotes',
'user',
];
public function includeUser(Project $project): ?Item
{
$transformer = new UserTransformer($this->serializer);
if (!$project->user) { //@phpstan-ignore-line
return null;
}
return $this->includeItem($project->user, $transformer, User::class);
}
public function includeDocuments(Project $project)
{
$transformer = new DocumentTransformer($this->serializer);