您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

27 行
589B

  1. <?php
  2. namespace Lc\SovBundle\Doctrine\Extension;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. use Lc\SovBundle\Model\User\UserInterface;
  6. trait BlameableNullableTrait
  7. {
  8. /**
  9. * @Gedmo\Blameable(on="create")
  10. * @ORM\ManyToOne(targetEntity="Lc\SovBundle\Model\User\UserInterface")
  11. * @ORM\JoinColumn(nullable=true)
  12. */
  13. protected $createdBy;
  14. /**
  15. * @Gedmo\Blameable(on="update")
  16. * @ORM\ManyToOne(targetEntity="Lc\SovBundle\Model\User\UserInterface")
  17. * @ORM\JoinColumn(nullable=true)
  18. */
  19. protected $updatedBy;
  20. }