Solved some small bugs

This commit is contained in:
Kevin Frantz
2019-02-16 18:02:28 +01:00
parent 7dae633ec7
commit 6083c51c2e
3 changed files with 9 additions and 3 deletions

View File

@@ -31,9 +31,9 @@ final class MVCRoutineService implements MVCRoutineServiceInterface
{
switch (gettype($result)) {
case 'object':
return ['entity' => $this->result];
return ['entity' => $result];
case 'array':
return ['enitits' => $this->result];
return ['entities' => $result];
case 'null':
return [];
}