Skip to content
This repository was archived by the owner on Jun 19, 2022. It is now read-only.

Commit ad5fbf9

Browse files
committed
update transformer skeleton template
1 parent dbc0edf commit ad5fbf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resources/skeleton/transformer/Transformer.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function transform(?<?= $entity_class_name ?> $<?= $entity_variable_name
3838
// Decorate your return data in array form.
3939
return $<?= $entity_variable_name ?> ? [
4040
'id' => $<?= $entity_variable_name ?>->getId(),
41-
] : $this->null();
41+
] : [];
4242
}
4343

4444
/**

0 commit comments

Comments
 (0)