Implemented Permission draft

This commit is contained in:
Kevin Frantz
2018-09-13 16:51:58 +02:00
parent 92886a14ce
commit 69f2beac72
28 changed files with 203 additions and 143 deletions

View File

@@ -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;
}
}