Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not possible to install with Nette 3 #341

Open
Michal-Mikolas opened this issue Jul 29, 2021 · 1 comment
Open

Not possible to install with Nette 3 #341

Michal-Mikolas opened this issue Jul 29, 2021 · 1 comment

Comments

@Michal-Mikolas
Copy link

So, after creating fresh Nette 3 project...

> composer create-project nette/web-project test
> cd test

I was just following the official documentation of Kdyby/Doctrine:

> composer require kdyby/doctrine

Using version ^3.3 for kdyby/doctrine
./composer.json has been updated
Running composer update kdyby/doctrine
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - kdyby/doctrine[v3.3.0, ..., v3.3.1] require nette/di ^2.4@dev -> found nette/di[v2.4.0, ..., v2.4.17] but it conflicts with your root composer.json require (^3.0).
    - Root composer.json requires kdyby/doctrine ^3.3 -> satisfiable by kdyby/doctrine[v3.3.0, v3.3.1].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Ok, maybe I can try --with-all-dependencies as suggested:

> composer require kdyby/doctrine -W

Using version ^3.3 for kdyby/doctrine
./composer.json has been updated
Running composer update kdyby/doctrine --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - kdyby/doctrine[v3.3.0, ..., v3.3.1] require nette/di ^2.4@dev -> found nette/di[v2.4.0, ..., v2.4.17] but it conflicts with your root composer.json require (^3.0).
    - Root composer.json requires kdyby/doctrine ^3.3 -> satisfiable by kdyby/doctrine[v3.3.0, v3.3.1].

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

How can I install Kdyby/Doctrine to Nette3 sandbox?

Thank you.

@petrparolek
Copy link

Best solution is use nettrine/orm instead of kdyby/doctrine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants