|
@@ 143-146 (lines=4) @@
|
| 140 |
|
} |
| 141 |
|
|
| 142 |
|
try { |
| 143 |
|
if ($this->registry && ($manager = $this->registry->getManagerForClass($entityOrDocumentNameOrId)) && |
| 144 |
|
$gridSource = $this->getGridSource($manager, $entityOrDocumentNameOrId)) { |
| 145 |
|
return $gridSource; |
| 146 |
|
} |
| 147 |
|
} catch (\ReflectionException $exception) { |
| 148 |
|
} |
| 149 |
|
|
|
@@ 150-153 (lines=4) @@
|
| 147 |
|
} catch (\ReflectionException $exception) { |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
if ($this->mongodbRegistry && ($manager = $this->mongodbRegistry->getManagerForClass($entityOrDocumentNameOrId)) && |
| 151 |
|
$gridSource = $this->getGridSource($manager, $entityOrDocumentNameOrId)) { |
| 152 |
|
return $gridSource; |
| 153 |
|
} |
| 154 |
|
throw new \Exception("Can't find grid source for $entityOrDocumentNameOrId"); |
| 155 |
|
} |
| 156 |
|
|