src/Entity/Pais.php line 17
- <?php
- namespace App\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Knp\DoctrineBehaviors\Contract\Entity\TranslatableInterface;
- use Knp\DoctrineBehaviors\Model\Translatable\TranslatableTrait;
- /**
- * Pais
- *
- * @ORM\Table(name="pais")
- * @ORM\Entity
- */
- class Pais implements TranslatableInterface
- {
- use TranslatableTrait;
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @var integer
- *
- * @ORM\Column(name="isonum", type="integer")
- */
- private $isonum;
- /**
- * @var string
- *
- * @ORM\Column(name="iso2", type="string", length=100)
- */
- private $iso2;
- /**
- * @var string
- *
- * @ORM\Column(name="iso3", type="string", length=100)
- */
- private $iso3;
- public function __call($method, $args)
- {
- //return $this->proxyCurrentLocaleTranslation($method, $arguments);
- if (!method_exists(self::getTranslationEntityClass(), $method)) {
- $method = 'get'. ucfirst($method);
- }
- return $this->proxyCurrentLocaleTranslation($method, $args);
- }
- public function __toString()
- {
- return $this->getNombre();
- }
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set isonum
- *
- * @param integer $isonum
- * @return Pais
- */
- public function setIsonum($isonum)
- {
- $this->isonum = $isonum;
- return $this;
- }
- /**
- * Get isonum
- *
- * @return integer
- */
- public function getIsonum()
- {
- return $this->isonum;
- }
- /**
- * Set iso2
- *
- * @param string $iso2
- * @return Pais
- */
- public function setIso2($iso2)
- {
- $this->iso2 = $iso2;
- return $this;
- }
- /**
- * Get iso2
- *
- * @return string
- */
- public function getIso2()
- {
- return $this->iso2;
- }
- /**
- * Set iso3
- *
- * @param string $iso3
- * @return Pais
- */
- public function setIso3($iso3)
- {
- $this->iso3 = $iso3;
- return $this;
- }
- /**
- * Get iso3
- *
- * @return string
- */
- public function getIso3()
- {
- return $this->iso3;
- }
- }