<?php
/*
 * Developer : John D'Alto (jdalto@yahoo.com)
 * Date : 9/1/2012
 * All code (c)2012 JLS Consulting, all rights reserved
 */

namespace Dorcas\TabithaBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/** 
 * 
 * @ORM\Table(name="ethnicity_type") 
 * @ORM\Entity(repositoryClass="Dorcas\TabithaBundle\Repository\EthnicityRepository")
 */ 
class Ethnicity 
{ 
    /** 
     * @var integer $id 
     * 
     * @ORM\Column(name="id", type="integer", nullable=false) 
     * @ORM\Id 
     * @ORM\GeneratedValue(strategy="IDENTITY") 
     */ 
    private $id; 
    /** 
     * @var string $name 
     * 
     * @ORM\Column(name="name", type="string", length=45, nullable=false) 
     */ 
    private $name; 
    /** 
     * @var string $title 
     * 
     * @ORM\Column(name="title", type="string", length=45, nullable=false) 
     */ 
    private $title; 
    public function getId() 
    { 
        return $this->id; 
    } 
    public function setName($name) 
    { 
        $this->name = $name; 
    } 
    public function getName() 
    { 
        return $this->name; 
    } 
    public function setTitle($title) 
    { 
        $this->title = $title; 
    } 
    public function getTitle() 
    { 
        return $this->title; 
    }  
    
    public function __toString()
{
    return $this->getName();
}

    
}