Issues (291)

tests/Dao/TestPersonDao.php (1 issue)

Labels
Severity
1
<?php
2
3
/*
4
 * This file has been automatically generated by TDBM.
5
 * You can edit this file as it will not be overwritten.
6
 */
7
8
declare(strict_types=1);
9
10
namespace TheCodingMachine\TDBM\Dao;
11
12
use TheCodingMachine\TDBM\ResultIterator;
13
use TheCodingMachine\TDBM\Test\Dao\Generated\PersonBaseDao;
0 ignored issues
show
The type TheCodingMachine\TDBM\Te...Generated\PersonBaseDao was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
14
15
/**
16
 * The ContactDao class will maintain the persistence of ContactBean class into the contact table.
17
 */
18
class TestPersonDao extends PersonBaseDao
19
{
20
    public function testFindFromRawSQLOnInherited(): ResultIterator
21
    {
22
        $sql = '
23
            SELECT DISTINCT  person.*, contact.*, users.*
24
            FROM person JOIN contact ON person.id = contact.id
25
             JOIN users ON contact.id = users.id
26
        ';
27
28
        return $this->findFromRawSql($sql, []);
29
    }
30
}
31