Skip to content

Commit

Permalink
Merge pull request #15 from TomHAnderson/hotfix/names
Browse files Browse the repository at this point in the history
Hotfix/names
  • Loading branch information
TomHAnderson committed Jun 27, 2018
2 parents 47a5afd + 778929c commit e67e336
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Type/EntityTypeAbstractFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ public function __invoke(ContainerInterface $container, $requestedName, array $o
}

$instance = new EntityType([
'name' => $requestedName . '_' . $options['hydrator_section'],
'name' => str_replace('\\', '_', $requestedName) . '__' . $options['hydrator_section'],
'description' => 'testing description',
'fields' => function () use ($fields, $references) {
foreach ($references as $referenceName => $resolve) {
Expand Down
2 changes: 1 addition & 1 deletion test/GraphQL/UserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function testPasswordFilter($schemaName, $context)
$output = $result->toArray();

$this->assertEquals(
'Cannot query field "password" on type "DbTest\Entity\User_' . $schemaName . '".',
'Cannot query field "password" on type "DbTest_Entity_User__' . $schemaName . '".',
$output['errors'][0]['message']
);
}
Expand Down

0 comments on commit e67e336

Please sign in to comment.