我正在尝试使用Gedmo\Loggable来记录实体的任何更改。这是我的实现:
/**
* @Gedmo\Loggable
* @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false)
*/
class MyClass
{在赛场上
/**
* @Gedmo\Versioned
*/
private $type;在我的doctrine.yaml中:
gedmo_loggable:
type: annotation
prefix: Gedmo\Loggable\Entity
dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/Entity"
alias: GedmoLoggable # (optional) it will default to the name set for the mapping
is_bundle: false当我更新此实体的字段时。没有日志插入到Gedmo的表"ext_log_entries“中,我是不是遗漏了什么?
发布于 2019-01-11 02:30:58
试试这个:
/**
* @Gedmo\Versioned
* @ORM\Column(length=8)
*/
private $type;我忘了@ORM\Column(length=8)
https://stackoverflow.com/questions/54112220
复制相似问题