src/Entity/Viaje.php line 16

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Knp\DoctrineBehaviors\Contract\Entity\TranslatableInterface;
  5. use Knp\DoctrineBehaviors\Model\Translatable\TranslatableTrait;
  6. /**
  7.  * Viaje
  8.  *
  9.  * @ORM\Table()
  10.  * @ORM\Entity
  11.  */
  12. class Viaje  implements TranslatableInterface
  13. {
  14.     use TranslatableTrait;
  15.     
  16.     public function __call($method$args)
  17.     {
  18.         //return $this->proxyCurrentLocaleTranslation($method, $arguments);
  19.         if (!method_exists(self::getTranslationEntityClass(), $method)) {
  20.             $method 'get'ucfirst($method);
  21.         }
  22.         return $this->proxyCurrentLocaleTranslation($method$args);        
  23.     }
  24.     /**
  25.      * @var integer
  26.      *
  27.      * @ORM\Column(name="id", type="integer")
  28.      * @ORM\Id
  29.      * @ORM\GeneratedValue(strategy="AUTO")
  30.      */
  31.     private $id;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity="Divisa")
  34.      * @ORM\JoinColumn(name="divisa", referencedColumnName="id")
  35.      */
  36.     private $divisa;
  37.     /**
  38.      * @var integer
  39.      *
  40.      * @ORM\Column(name="peso", type="integer")
  41.      */
  42.     private $peso;
  43.     /**
  44.      * @var integer
  45.      *
  46.      * @ORM\Column(name="cantidadDia", type="integer")
  47.      */
  48.     private $cantidadDia;
  49.     /**
  50.      * Get id
  51.      *
  52.      * @return integer 
  53.      */
  54.     public function getId()
  55.     {
  56.         return $this->id;
  57.     }
  58.     /**
  59.      * Set divisa
  60.      *
  61.      * @param integer $divisa
  62.      * @return Viaje
  63.      */
  64.     public function setDivisa($divisa)
  65.     {
  66.         $this->divisa $divisa;
  67.         return $this;
  68.     }
  69.     /**
  70.      * Get divisa
  71.      *
  72.      * @return integer 
  73.      */
  74.     public function getDivisa()
  75.     {
  76.         return $this->divisa;
  77.     }
  78.     /**
  79.      * Set peso
  80.      *
  81.      * @param integer $peso
  82.      * @return Viaje
  83.      */
  84.     public function setPeso($peso)
  85.     {
  86.         $this->peso $peso;
  87.         return $this;
  88.     }
  89.     /**
  90.      * Get peso
  91.      *
  92.      * @return integer 
  93.      */
  94.     public function getPeso()
  95.     {
  96.         return $this->peso;
  97.     }
  98.     /**
  99.      * Set cantidadDia
  100.      *
  101.      * @param integer $cantidadDia
  102.      * @return Viaje
  103.      */
  104.     public function setCantidadDia($cantidadDia)
  105.     {
  106.         $this->cantidadDia $cantidadDia;
  107.         return $this;
  108.     }
  109.     /**
  110.      * Get cantidadDia
  111.      *
  112.      * @return integer 
  113.      */
  114.     public function getCantidadDia()
  115.     {
  116.         return $this->cantidadDia;
  117.     }
  118. }