src/Entity/Viaje.php line 16
- <?php
- namespace App\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Knp\DoctrineBehaviors\Contract\Entity\TranslatableInterface;
- use Knp\DoctrineBehaviors\Model\Translatable\TranslatableTrait;
- /**
- * Viaje
- *
- * @ORM\Table()
- * @ORM\Entity
- */
- class Viaje implements TranslatableInterface
- {
- use TranslatableTrait;
- 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);
- }
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @ORM\ManyToOne(targetEntity="Divisa")
- * @ORM\JoinColumn(name="divisa", referencedColumnName="id")
- */
- private $divisa;
- /**
- * @var integer
- *
- * @ORM\Column(name="peso", type="integer")
- */
- private $peso;
- /**
- * @var integer
- *
- * @ORM\Column(name="cantidadDia", type="integer")
- */
- private $cantidadDia;
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set divisa
- *
- * @param integer $divisa
- * @return Viaje
- */
- public function setDivisa($divisa)
- {
- $this->divisa = $divisa;
- return $this;
- }
- /**
- * Get divisa
- *
- * @return integer
- */
- public function getDivisa()
- {
- return $this->divisa;
- }
- /**
- * Set peso
- *
- * @param integer $peso
- * @return Viaje
- */
- public function setPeso($peso)
- {
- $this->peso = $peso;
- return $this;
- }
- /**
- * Get peso
- *
- * @return integer
- */
- public function getPeso()
- {
- return $this->peso;
- }
- /**
- * Set cantidadDia
- *
- * @param integer $cantidadDia
- * @return Viaje
- */
- public function setCantidadDia($cantidadDia)
- {
- $this->cantidadDia = $cantidadDia;
- return $this;
- }
- /**
- * Get cantidadDia
- *
- * @return integer
- */
- public function getCantidadDia()
- {
- return $this->cantidadDia;
- }
- }