These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | /* |
||
6 | * This file is part of the Sonata Project package. |
||
7 | * |
||
8 | * (c) Thomas Rabaix <[email protected]> |
||
9 | * |
||
10 | * For the full copyright and license information, please view the LICENSE |
||
11 | * file that was distributed with this source code. |
||
12 | */ |
||
13 | |||
14 | namespace Sonata\DoctrineMongoDBAdminBundle\Guesser; |
||
15 | |||
16 | use Doctrine\ORM\Mapping\MappingException; |
||
17 | use Sonata\AdminBundle\Guesser\TypeGuesserInterface; |
||
18 | use Sonata\DoctrineMongoDBAdminBundle\Model\ModelManager; |
||
19 | |||
20 | abstract class AbstractTypeGuesser implements TypeGuesserInterface |
||
21 | { |
||
22 | /** |
||
23 | * @param string $baseClass |
||
24 | * @param string $propertyFullName |
||
25 | * @param \Sonata\DoctrineMongoDBAdminBundle\Model\ModelManager $modelManager |
||
26 | * |
||
27 | * @return array|null |
||
28 | */ |
||
29 | protected function getParentMetadataForProperty($baseClass, $propertyFullName, ModelManager $modelManager) |
||
30 | { |
||
31 | try { |
||
32 | return $modelManager->getParentMetadataForProperty($baseClass, $propertyFullName); |
||
33 | } catch (MappingException $e) { |
||
0 ignored issues
–
show
|
|||
34 | // no metadata not found. |
||
35 | return; |
||
36 | } |
||
37 | } |
||
38 | } |
||
39 |
Scrutinizer analyzes your
composer.json
/composer.lock
file if available to determine the classes, and functions that are defined by your dependencies.It seems like the listed class was neither found in your dependencies, nor was it found in the analyzed files in your repository. If you are using some other form of dependency management, you might want to disable this analysis.