bundle/w3des/AdminBundle/src/Entity/NodeVariable.php line 13

Open in your IDE?
  1. <?php
  2. namespace w3des\AdminBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use w3des\AdminBundle\Model\ValueTrait;
  5. use w3des\AdminBundle\Model\ValueInterface;
  6. use Symfony\Contracts\Translation\LocaleAwareInterface;
  7. /**
  8. * @ORM\Table()
  9. * @ORM\Entity()
  10. */
  11. class NodeVariable implements ValueInterface
  12. {
  13. use ValueTrait;
  14. /**
  15. * @ORM\ManyToOne(targetEntity="w3des\AdminBundle\Entity\Node", inversedBy="variables")
  16. * @ORM\JoinColumn(name="node_id")
  17. * @ORM\Id
  18. */
  19. private $node;
  20. /**
  21. * @ORM\Column(type="string")
  22. * @ORM\Id
  23. */
  24. private $name;
  25. /**
  26. * @ORM\Column(type="string", length=2)
  27. * @ORM\Id
  28. */
  29. private $locale;
  30. /**
  31. * @ORM\Column(type="integer")
  32. * @ORM\Id
  33. */
  34. private $pos = 0;
  35. public function getNode()
  36. {
  37. return $this->node;
  38. }
  39. public function setNode($node)
  40. {
  41. $this->node = $node;
  42. return $this;
  43. }
  44. }