1 | <?php |
||
2 | |||
3 | require __DIR__.'/../../tests/autoload.php'; |
||
4 | |||
5 | $config = \Doctrine\ORM\Tools\Setup::createAnnotationMetadataConfiguration( |
||
6 | array(__DIR__.'./../../vendor/doctrine/orm/tests/Doctrine/Tests/Models/CMS/'), |
||
7 | false, |
||
8 | __DIR__.'/../proxies/', |
||
9 | new \Doctrine\Common\Cache\ArrayCache(), |
||
10 | true |
||
11 | ); |
||
12 | |||
13 | $connectionParams = array( |
||
14 | 'url' => 'sqlite:///'.__DIR__.'/../example.sqlite', |
||
15 | ); |
||
16 | |||
17 | $entityManager = \Doctrine\ORM\EntityManager::create( |
||
18 | \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config), |
||
19 | $config |
||
20 | ); |
||
21 | |||
22 | $datatable = new \DoctrineDatatable\Datatable( |
||
23 | $entityManager->createQueryBuilder() |
||
24 | ->select('u') |
||
25 | ->from(\Doctrine\Tests\Models\CMS\CmsUser::class, 'u'), |
||
0 ignored issues
–
show
|
|||
26 | 'id', |
||
27 | array( |
||
28 | new \DoctrineDatatable\Column( |
||
29 | 'name', |
||
30 | 'u.name', |
||
31 | 'u.name LIKE :name', |
||
32 | '%:name%' |
||
33 | ), |
||
34 | new \DoctrineDatatable\Column( |
||
35 | 'status', |
||
36 | 'u.status', |
||
37 | 'u.status = :status', |
||
38 | ':status' |
||
39 | ), |
||
40 | ) |
||
41 | ); |
||
42 | |||
43 | echo json_encode( |
||
44 | $datatable->get($_POST) |
||
45 | ); |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths