composer/composer — Issue #193: [UnexpectedValueException] ... Weird behaviour when installing with "doctrine/orm (2.2.0-BETA2)"
Author: brikou
Created: 2012-01-09 08:18:12+00:00
State: open

Hello,

This composer.json works fine (when running install):

```
{
"require": {
"php": ">=5.3.0",
"symfony/console": ">2.0,<2.2-dev",
"symfony/finder": ">2.0,<2.2-dev",
"symfony/process": ">2.0,<2.2-dev"
},
"autoload": {
"psr-0": { "Composer": "src/" }
}
}
```

When adding another source (fe: doctrine/orm) and running install

```
{
"require": {
"php": ">=5.3.0",
"symfony/console": ">2.0,<2.2-dev",
"symfony/finder": ">2.0,<2.2-dev",
"symfony/process": ">2.0,<2.2-dev",
"doctrine/orm": "2.2.0-BETA2"
},
"autoload": {
"psr-0": { "Composer": "src/" }
}
}
```

I get the following exception...

```
[UnexpectedValueException]
Package symfony/console can not be installed, either because its version constraint is incorrect,
or because one of its dependencies was not found.
```

"Composer version 83a106b"

It seems that the problem is related to the "doctrine/orm" line... if so the excpetion should mention doctrine/orm

cheer