You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

BlameableNullableTrait.php 589B

пре 3 година
пре 3 година
пре 3 година
123456789101112131415161718192021222324252627
  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. }