Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
|
- <?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=true)
- */
- protected $createdBy;
-
- /**
- * @Gedmo\Blameable(on="update")
- * @ORM\ManyToOne(targetEntity="Lc\SovBundle\Model\User\UserInterface")
- * @ORM\JoinColumn(nullable=true)
- */
- 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;
- }
- }
|