infinito/application/src/Entity/UserSource.php

25 lines
504 B
PHP
Raw Normal View History

2018-09-13 14:39:03 +02:00
<?php
2018-09-13 16:51:58 +02:00
2018-09-13 14:39:03 +02:00
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;
2018-09-13 16:51:58 +02:00
2018-09-13 14:39:03 +02:00
/**
* @ORM\OneToOne(targetEntity="User")
* @ORM\JoinColumn(name="user_id", referencedColumnName="id")
2018-09-13 16:51:58 +02:00
*
2018-09-13 14:39:03 +02:00
* @var User
*/
protected $user;
}