Added new entity draft

This commit is contained in:
Kevin Frantz
2018-09-13 14:39:03 +02:00
parent 0ee29d3456
commit 00965aab5c
23 changed files with 331 additions and 34 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\Entity\Attribut\UserAttribut;
/**
*
* @author kevinfrantz
* @ORM\Table(name="source_user")
* @ORM\Entity(repositoryClass="App\Repository\UserSourceRepository")
*/
class UserSource extends AbstractSource implements UserSourceInterface
{
use UserAttribut;
/**
* @ORM\OneToOne(targetEntity="User")
* @ORM\JoinColumn(name="user_id", referencedColumnName="id")
* @var User
*/
protected $user;
}