|
@@ 156-159 (lines=4) @@
|
| 153 |
|
} |
| 154 |
|
|
| 155 |
|
try { |
| 156 |
|
if ($this->registry && ($manager = $this->registry->getManagerForClass($entityOrDocumentNameOrId)) && |
| 157 |
|
$gridSource = $this->getGridSource($manager, $entityOrDocumentNameOrId)) { |
| 158 |
|
return $gridSource; |
| 159 |
|
} |
| 160 |
|
} catch (\ReflectionException $exception) { |
| 161 |
|
} |
| 162 |
|
|
|
@@ 163-166 (lines=4) @@
|
| 160 |
|
} catch (\ReflectionException $exception) { |
| 161 |
|
} |
| 162 |
|
|
| 163 |
|
if ($this->mongodbRegistry && ($manager = $this->mongodbRegistry->getManagerForClass($entityOrDocumentNameOrId)) && |
| 164 |
|
$gridSource = $this->getGridSource($manager, $entityOrDocumentNameOrId)) { |
| 165 |
|
return $gridSource; |
| 166 |
|
} |
| 167 |
|
throw new \Exception("Can't find grid source for $entityOrDocumentNameOrId"); |
| 168 |
|
} |
| 169 |
|
|