-
Notifications
You must be signed in to change notification settings - Fork 381
Closed as not planned
Description
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.
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
Metadata
Metadata
Assignees
Labels
No labels