doctrine / DoctrineFixturesBundle

Symfony integration for the doctrine/data-fixtures library
MIT License
2.44k stars 201 forks source link

Missing dependency Doctrine\Common when executing d:f:l command #422

Closed AlvanOclock closed 5 months ago

AlvanOclock commented 5 months ago

After installing symfony 6.4.* or 7.0.* with symfony new my_project_directory --version="6.4.*" --webapp and installing the fixtures bundle, I have an error when i execute php bin/console d:f:l :

In BroadcastListener.php line 138:

Attempted to load class "ClassUtils" from namespace "Doctrine\Common\Util". Did you forget a "use" statement for another namespace?

It seems that there is a missing dependency Doctrine\Common. If i install it manually with composer require doctrine/common, it works properly.

How to replicate :

Don't know if it's an issue with this bundle or the newest symfony version 6.4.3. Also, i tried installing a fresh symfony project with 6.4.2 and I don't have the issue.

fabpot commented 5 months ago

This one can be closed as the issue comes from https://github.com/symfony/ux which implicitly depends on doctrine/common.

fabpot commented 5 months ago

See https://github.com/symfony/ux/issues/1469