mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Implemented Permission draft
This commit is contained in:
@@ -1,28 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Entity\Attribut;
|
||||
|
||||
use App\Entity\UserSourceInterface;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
trait UserSource {
|
||||
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{
|
||||
|
||||
public function setUserSource(UserSourceInterface $userSource): void
|
||||
{
|
||||
$this->user = $userSource;
|
||||
}
|
||||
|
||||
public function getUserSource():UserSourceInterface{
|
||||
|
||||
public function getUserSource(): UserSourceInterface
|
||||
{
|
||||
return $this->userSource;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user