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

[Translation] Incompatibles packages on translation page #20855

Open
Asmitta-01 opened this issue Apr 3, 2025 · 3 comments
Open

[Translation] Incompatibles packages on translation page #20855

Asmitta-01 opened this issue Apr 3, 2025 · 3 comments

Comments

@Asmitta-01
Copy link

Asmitta-01 commented Apr 3, 2025

On the translation page: https://symfony.com/doc/current/translation.html#translations-of-doctrine-entities two package are suggested for entities translation: Gedmo\DoctrineExtension and KnpLabs/DoctrineBehavior. But the second package doesn't support Symfony 7 and Doctrine 3, since the documentation is supposed to give suggestions for the latest Symfony version i think those packages should not be there. They will work fine on Symfony 6 but on SF7 many downgrades should be done.

@Pierstoval
Copy link
Contributor

Many KNPLabs packages are kinda abandoned, the DoctrineBehavior package is even looking for maintainers: KnpLabs/DoctrineBehaviors#711

I'd suggest keeping Gedmo/DoctrineExtensions but adding an explanation saying that Knp's package is not maintained. This might help people know whether they should contribute to the package or migrate to Gedmo's one

@Asmitta-01
Copy link
Author

KnpLabs package is really better thant Gedmo one(personal choice), i didn't know they were looking for maintainers. i'm not a Symfony expert but i hope i'll be useful there.

I'd suggest keeping Gedmo/DoctrineExtensions but adding an explanation saying that Knp's package is not maintained. This might help people know whether they should contribute to the package or migrate to Gedmo's one

You're right.

@tacman
Copy link
Contributor

tacman commented Apr 3, 2025

This will install DoctrineBehaviors in Symfony 7.

composer config repositories.jfsenechal_doctrine_behaviors '{"type": "vcs", "url": "[email protected]:jfsenechal/DoctrineBehaviors.git"}'
composer require knplabs/doctrine-behaviors:"dev-sf7.0 as 2.6.3"

It's workable but not a great solution.

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

No branches or pull requests

4 participants