mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-04-16 10:16:22 +02:00
29 lines
575 B
PHP
29 lines
575 B
PHP
<?php
|
|
|
|
namespace Entity\Attribut;
|
|
|
|
use App\Entity\UserSourceInterface;
|
|
|
|
/**
|
|
* @author kevinfrantz
|
|
*/
|
|
trait UserSource
|
|
{
|
|
/**
|
|
* @var UserSourceInterface
|
|
* @ORM\OneToOne(targetEntity="UserSource",cascade={"persist", "remove"})
|
|
* @ORM\JoinColumn(name="source_user_id", referencedColumnName="id")
|
|
*/
|
|
protected $userSource;
|
|
|
|
public function setUserSource(UserSourceInterface $userSource): void
|
|
{
|
|
$this->user = $userSource;
|
|
}
|
|
|
|
public function getUserSource(): UserSourceInterface
|
|
{
|
|
return $this->userSource;
|
|
}
|
|
}
|