You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Smyfony 6.4 with Doctrine and stof/doctrine-extensions-bundle
<?php
namespace App\Entity;
use App\Repository\TestRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Loggable\Loggable;
use Gedmo\Translatable\Translatable;
use Gedmo\Mapping\Annotation as Gedmo;
#[Gedmo\Loggable]
#[ORM\Entity(repositoryClass: TestRepository::class)]
class Test implements Translatable, Loggable
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[Gedmo\Versioned]
#[Gedmo\Translatable]
#[ORM\Column(length: 255)]
private ?string $name = null;
}
Versioning does not take place once Translatable is activated. The instruction is simply ignored.
There are no log entries that indicate an error.
If I use Gedmo\Versioned, it works.
If I use Gedmo\Translatable, it works.
If I use both, only Gedmo\Translatable works.
You should ask on the repository of the extensions themselves to know whether both extensions can be used on the same field or no.
This repository is for the Symfony bundle providing the wiring of the extensions, not for the extensions themselves (and I'm not the maintainer of the extensions)
I use Smyfony 6.4 with Doctrine and stof/doctrine-extensions-bundle
Versioning does not take place once Translatable is activated. The instruction is simply ignored.
There are no log entries that indicate an error.
If I use Gedmo\Versioned, it works.
If I use Gedmo\Translatable, it works.
If I use both, only Gedmo\Translatable works.
Is that what you want?
I also posted the question here
https://stackoverflow.com/questions/77988068/how-can-i-use-gedmo-translatable-and-gedmo-loggable-together
The text was updated successfully, but these errors were encountered: