|
@@ -58,9 +58,9 @@ |
|
|
block discarded – undo |
|
58
|
58
|
|
|
59
|
59
|
// 同じパッケージのEntityがあれば返す |
|
60
|
60
|
if (count($partsOfFqcn) > 2) { |
|
61
|
|
- $parentNamespace = implode('\\', array_slice($partsOfFqcn, 0, count($partsOfFqcn)-2)); |
|
62
|
|
- $entityName = preg_replace('/(.*)Repository/', '$1', $partsOfFqcn[count($partsOfFqcn) -1]); |
|
63
|
|
- $result = $parentNamespace . '\\Entity\\' . $entityName; |
|
|
61
|
+ $parentNamespace = implode('\\', array_slice($partsOfFqcn, 0, count($partsOfFqcn) - 2)); |
|
|
62
|
+ $entityName = preg_replace('/(.*)Repository/', '$1', $partsOfFqcn[count($partsOfFqcn) - 1]); |
|
|
63
|
+ $result = $parentNamespace.'\\Entity\\'.$entityName; |
|
64
|
64
|
if (class_exists($result)) { |
|
65
|
65
|
return $result; |
|
66
|
66
|
} |
Please login to merge, or discard this patch.