thecodingmachine /
tdbm
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace TheCodingMachine\TDBM\Dao; |
||
| 6 | |||
| 7 | use TheCodingMachine\TDBM\ResultIterator; |
||
| 8 | use TheCodingMachine\TDBM\TDBMService; |
||
| 9 | use TheCodingMachine\TDBM\Test\Dao\Bean\ArticleBean; |
||
|
0 ignored issues
–
show
|
|||
| 10 | use TheCodingMachine\TDBM\Test\Dao\Generated\ArticleBaseDao; |
||
|
0 ignored issues
–
show
The type
TheCodingMachine\TDBM\Te...enerated\ArticleBaseDao 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 11 | |||
| 12 | /** |
||
| 13 | * The UserDao class will maintain the persistence of UserBean class into the users table. |
||
| 14 | */ |
||
| 15 | class TestArticleSubQueryDao extends ArticleBaseDao |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var TestUserDao |
||
| 19 | */ |
||
| 20 | private $userDao; |
||
| 21 | |||
| 22 | public function __construct(TDBMService $tdbmService, TestUserDao $userDao) |
||
| 23 | { |
||
| 24 | parent::__construct($tdbmService); |
||
| 25 | $this->userDao = $userDao; |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Used to test a findFromSql with an order by clause on an inherited table. |
||
| 30 | * |
||
| 31 | * @return ResultIterator&ArticleBean[] |
||
| 32 | */ |
||
| 33 | public function getArticlesByUserLoginStartingWith(string $login): ResultIterator |
||
| 34 | { |
||
| 35 | /*return $this->find( |
||
| 36 | 'author_id IN (:authorIds)', |
||
| 37 | [ 'authorIds' => $this->userDao->getUsersByLoginStartingWith($login) ], |
||
| 38 | 'users.login' |
||
| 39 | );*/ |
||
| 40 | return $this->find( |
||
| 41 | $this->userDao->getUsersByLoginStartingWith($login), |
||
| 42 | [], |
||
| 43 | 'users.login' |
||
| 44 | ); |
||
| 45 | } |
||
| 46 | } |
||
| 47 |
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