I added the docrtine-fixtures and the doctrine-fixtures-bundle to my dependencies in the composer.json, as follow:
{
"require": {
"php": ">=5.3.3",
"symfony/finder": "2.3.*",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "~1.2",
"incenteev/composer-parameter-handler": "~2.0",
"doctrine/data-fixtures": "~1.1",
"doctrine/doctrine-fixtures-bundle": "~2.2",
"twig/extensions": "~1.0",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~2.3",
"sensio/framework-extra-bundle": "~3.0"
}
}
And then I did php-cli composer.phar update, which worked and displayed the right message on my terminal:
Loading composer repositories with package information Updating dependencies (including require-dev) - Updating doctrine/data-fixtures (dev-master bd44f6b => v1.1.1) Checking out bd44f6b6e40247b6530bc8abe802e4e4d914976a
Writing lock file
Generating autoload files
Bu when I go to the folder vendor/doctrine, I cannot find any data-fixtures repository. What is the issue? Why does composer not load it and why does it display success messages?
(PS: My solution was to add the doctrine-fixture repository manually but it doesn't solve the composer issue).
COMPOSER_CACHE_DIR=/dev/null composer require 'doctrine/data-fixtures:~1.1' && doctrine update doctrine/data-fixtures && ls -la ./vendor/doctrine/
to the question please. Run the command with the CWD where yourcomposer.json
is located. – Nicolai Fröhlich