bundle/w3des/AdminBundle/src/Entity/NodePos.php line 11

Open in your IDE?
  1. <?php
  2. namespace w3des\AdminBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. /**
  6. * @ORM\Table(name="node_pos")
  7. * @ORM\Entity()
  8. */
  9. class NodePos
  10. {
  11. /**
  12. * @ORM\ManyToOne(targetEntity="Node", inversedBy="positions")
  13. * @ORM\JoinColumn(name="node_id", onDelete="CASCADE")
  14. * @ORM\Id
  15. */
  16. private $node;
  17. /**
  18. * @ORM\ManyToOne(targetEntity="Node")
  19. * @ORM\JoinColumn(name="target_node_id", onDelete="CASCADE")
  20. * @ORM\Id
  21. */
  22. private $target;
  23. /**
  24. * @ORM\Column(type="string", options={"default" = "simple"})
  25. * @ORM\Id
  26. */
  27. private $type = 'simple';
  28. /**
  29. * @ORM\Column(type="integer")
  30. */
  31. private $pos;
  32. /**
  33. * @return $node
  34. */
  35. public function getNode()
  36. {
  37. return $this->node;
  38. }
  39. /**
  40. * @param \w3des\AdminBundle\Entity\Node $node
  41. */
  42. public function setNode($node)
  43. {
  44. $this->node = $node;
  45. }
  46. /**
  47. * @return $target
  48. */
  49. public function getTarget()
  50. {
  51. return $this->target;
  52. }
  53. /**
  54. * @param \w3des\AdminBundle\Entity\Node $target
  55. */
  56. public function setTarget($target)
  57. {
  58. $this->target = $target;
  59. }
  60. /**
  61. * @return $pos
  62. */
  63. public function getPos()
  64. {
  65. return $this->pos;
  66. }
  67. /**
  68. * @param mixed $pos
  69. */
  70. public function setPos($pos)
  71. {
  72. $this->pos = $pos;
  73. }
  74. /**
  75. * @return $type
  76. */
  77. public function getType()
  78. {
  79. return $this->type;
  80. }
  81. /**
  82. * @param string $type
  83. */
  84. public function setType($type)
  85. {
  86. $this->type = $type;
  87. }
  88. }