mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-10-31 17:29:04 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			586 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			586 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace Entity\Attribut;
 | |
| 
 | |
| use App\Entity\Interfaces\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;
 | |
|     }
 | |
| }
 |