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.
|
- <?php
-
- namespace Lc\SovBundle\Doctrine\Extension;
-
- use Doctrine\ORM\Mapping as ORM;
- use Gedmo\Mapping\Annotation as Gedmo;
- use Lc\SovBundle\Model\User\UserInterface;
-
- trait BlameableTrait
- {
-
- /**
- * @Gedmo\Blameable(on="create")
- * @ORM\ManyToOne(targetEntity="Lc\SovBundle\Model\User\UserInterface")
- * @ORM\JoinColumn(nullable=false)
- */
- protected $createdBy;
-
- /**
- * @Gedmo\Blameable(on="update")
- * @ORM\ManyToOne(targetEntity="Lc\SovBundle\Model\User\UserInterface")
- * @ORM\JoinColumn(nullable=false)
- */
- protected $updatedBy;
-
-
- public function getCreatedBy(): ?UserInterface
- {
- return $this->createdBy;
- }
-
- public function setCreatedBy(?UserInterface $createdBy): self
- {
- $this->createdBy = $createdBy;
-
- return $this;
- }
-
- public function getUpdatedBy(): ?UserInterface
- {
- return $this->updatedBy;
- }
-
- public function setUpdatedBy(?UserInterface $updatedBy): self
- {
- $this->updatedBy = $updatedBy;
-
- return $this;
- }
-
- }
|