src/AppBundle/Entity/ComponentePais.php line 12
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="componente_pais")
* @ORM\Entity(repositoryClass="AppBundle\Repository\ComponentePaisRepository")
* @ORM\HasLifecycleCallbacks()
*/
class ComponentePais
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\ManyToOne(targetEntity="Componente", inversedBy="paises", cascade={"persist"})
* @ORM\JoinColumn(name="componente_id", referencedColumnName="id")
*/
private $componente;
/**
* @ORM\Column(name="cod_pais", type="string", length=6)
*/
private $codPais;
public function getId()
{
return $this->id;
}
public function getComponente()
{
return $this->componente;
}
public function setComponente($componente)
{
$this->componente = $componente;
return $this;
}
public function getCodPais()
{
return $this->codPais;
}
public function setCodPais($codPais)
{
$this->codPais = $codPais;
return $this;
}
}