When I use \Doctrine\ORM\Mapping\Driver\AttributeDriver, I get an error:
Uncaught TypeError: Doctrine\ORM\Mapping\Driver\AttributeDriver::__construct(): Argument # 1 ($paths) must be of type array, Doctrine\Common\Annotations\CachedReader given, called in ... vendor\skar\laminas-doctrine-orm\src\Service\DriverFactory.php on line 49...
2.
```php
// local.php
<?php
/**
* Local configuration.
*
* Copy this file to `local.php` and change its settings as required.
* `local.php` is ignored by git and safe to use for local and sensitive data like usernames and passwords.
*/
declare(strict_types=1);
return [
'doctrine' => [
'connection' => [
'orm_default' => [
'params' => [
'host' => '<host>',
'port' => '<port>',
'user' => '<user>',
'password' => '<pass>',
'dbname' => '<dbname>',
],
],
],
],
];
Bug Report
Summary
When I use
\Doctrine\ORM\Mapping\Driver\AttributeDriver
, I get an error:How to reproduce
<?php
declare(strict_types=1);
return [ 'doctrine' => [ 'connection' => [ 'orm_default' => [ 'driver_class' => \Doctrine\DBAL\Driver\PDO\MySQL\Driver::class, ], ], ], ];
vendor/bin/laminas doctrine:migrations:diff