contributte / doctrine-annotations

:memo: Standalone Doctrine Annotations for Nette Framework
https://contributte.org/packages/nettrine/annotations.html
MIT License
18 stars 18 forks source link

doctrine/annotations version conflict #5

Closed MartkCz closed 6 years ago

MartkCz commented 6 years ago

I want try nettrine instead of kdyby, but I have composer error.

My composer.json

"nettrine/orm": "dev-master",
"nettrine/dbal": "dev-master",
"nettrine/annotations": "dev-master",

Error:

    - Installation request for nettrine/orm dev-master -> satisfiable by nettrine/orm[dev-master].
    - Can only install one of: doctrine/annotations[v1.6.0, v1.4.0].
    - nettrine/annotations dev-master requires doctrine/annotations 1.4.0 -> satisfiable by doctrine/annotations[v1.4.0].
    - nettrine/orm dev-master requires doctrine/annotations ~1.6.0 -> satisfiable by doctrine/annotations[v1.6.0].
    - Installation request for nettrine/annotations dev-master -> satisfiable by nettrine/annotations[dev-master].
f3l1x commented 6 years ago

Hi, do you really need nettrine/annotations? This package is suitable for writing your own annotations.

There is a special extension just for ORM.

Take a look - https://github.com/nettrine/orm/tree/master/.docs#minimal-configuration

extensions:
    orm.annotations: Nettrine\ORM\DI\OrmAnnotationsExtension

orm.annotations:
    paths:
        - App/Model/Database/Entity
enumag commented 6 years ago

@f3l1x Either way nettrine/annotations should not be locked to one specific version of doctrine/annotations. This should probably be ^1.4.0 instead.

f3l1x commented 6 years ago

You're right guys. I will move it to PHP 7.1 and unlock the version.

JanMikes commented 6 years ago

Hi @f3l1x any progress on this please? We are migrating from kdyby packages to nettrine+contributte, use own annotations and have same problem:

Problem 1
    - Installation request for nettrine/orm ^0.1 -> satisfiable by nettrine/orm[v0.1].
    - nettrine/orm v0.1 requires doctrine/annotations ^1.6.0 -> satisfiable by doctrine/annotations[v1.6.0].
    - Can only install one of: doctrine/annotations[v1.6.0, v1.4.0].
    - Can only install one of: doctrine/annotations[v1.4.0, v1.6.0].
    - nettrine/annotations v0.1 requires doctrine/annotations 1.4.0 -> satisfiable by doctrine/annotations[v1.4.0].
    - Installation request for nettrine/annotations ^0.1 -> satisfiable by nettrine/annotations[v0.1].
f3l1x commented 6 years ago

Should be fixed in: 8e9a1b8ef4c8149f47c562aea1546585d10db426