1
0
Fork 0

simplify entity name assumption

pull/483/head
Fuyao Zhao 2017-06-15 12:30:40 +08:00 committed by Alan Li
parent 737ee911e1
commit 5a0fa66a34
1 changed files with 3 additions and 2 deletions

View File

@ -106,8 +106,9 @@ class DynamicLoader extends NodeVisitorAbstract
$sym = new SymbolInformation($fieldName, SymbolKind::PROPERTY, Location::fromNode($entityNode), $classFqn); $sym = new SymbolInformation($fieldName, SymbolKind::PROPERTY, Location::fromNode($entityNode), $classFqn);
// Create type // Create type
array_push($entityParts, ucwords($enityName)); // array_push($entityParts, ucwords($enityName));
$typeName = implode('\\', $entityParts); // $typeName = implode('\\', $entityParts);
$typeName = ucwords($enityName);
$type = new Types\Object_(new Fqsen('\\' . $typeName)); $type = new Types\Object_(new Fqsen('\\' . $typeName));
// Create defintion from symbol, type and all others // Create defintion from symbol, type and all others