Closed Rachidelmahmoudi closed 3 years ago
Hi,
You are using version ^1.6 but you are trying to use code which is only available from v2 (see https://github.com/KnpLabs/DoctrineBehaviors/blob/v2.0.0-alpha1/src/Model/Translatable/TranslationTrait.php).
You need to upgrade to ^2.0, or use use Knp\DoctrineBehaviors\Model\Translatable\Translatable
.
Hi; After installing the package with composer I get this error that
Attempted to load trait "TranslationTrait" from namespace "Knp\DoctrineBehaviors\Model\Translatable".
in symfony this is my composer.jsonthe same for
use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
Best regards.