Laravel-Test-Helpers icon indicating copy to clipboard operation
Laravel-Test-Helpers copied to clipboard

Error when using factories (doctrine/dbal)

Open rawaludin opened this issue 11 years ago • 1 comments

When I'm using factory to fill model attribute, i get this error

....PHP Fatal error:  Class 'Doctrine\DBAL\Driver\PDOMySql\Driver' not found in /Users/rahmatawaludin/Sites/stc-idms/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php on line 59

Fatal error: Class 'Doctrine\DBAL\Driver\PDOMySql\Driver' not found in /Users/rahmatawaludin/Sites/stc-idms/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php on line 59

Is it because laravel 4.1 don't include doctrine?

rawaludin avatar Dec 28 '13 16:12 rawaludin

Yes. Just add "doctrine/dbal": "2.4.*" to your composer.json, and run composer update.

GrahamCampbell avatar Dec 28 '13 17:12 GrahamCampbell