mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-11-04 03:07:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			40 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace App\Entity\Source\Data\Name;
 | 
						|
 | 
						|
use App\Entity\Source\Data\AbstractDataSource;
 | 
						|
use App\Entity\Attribut\NameAttribut;
 | 
						|
use Doctrine\ORM\Mapping as ORM;
 | 
						|
use Symfony\Component\Validator\Constraints as Assert;
 | 
						|
 | 
						|
/**
 | 
						|
 * @author kevinfrantz
 | 
						|
 *
 | 
						|
 * @todo Change to SINGLE_TABLE. JOINED was necessary because SINGLE_TABLE leaded to:
 | 
						|
 *
 | 
						|
 * @see << SQLSTATE[42S02]: Base table or view not found: 1146 Table 'DEV_DATABASE.source_data_name' doesn't exist >>
 | 
						|
 * @ORM\Entity
 | 
						|
 * @ORM\Table(name="source_data_name")
 | 
						|
 * @ORM\InheritanceType("JOINED")
 | 
						|
 * @ORM\DiscriminatorColumn(name="discr", type="string")
 | 
						|
 * @ORM\DiscriminatorMap({"nickname" = "NicknameSource","firstname" = "FirstNameSource", "surname" = "SurnameSource"})
 | 
						|
 */
 | 
						|
class AbstractNameSource extends AbstractDataSource implements NameSourceInterface
 | 
						|
{
 | 
						|
    use NameAttribut;
 | 
						|
 | 
						|
    /**
 | 
						|
     * @todo Implement an extra assert Layer! - maybe ;)
 | 
						|
     * @ORM\Column(type="string",length=255)
 | 
						|
     * @Assert\NotBlank()
 | 
						|
     *
 | 
						|
     * @var string
 | 
						|
     */
 | 
						|
    protected $name;
 | 
						|
 | 
						|
    public function __construct()
 | 
						|
    {
 | 
						|
        parent::__construct();
 | 
						|
    }
 | 
						|
}
 |