src/Entity/Idempiere/MWarehouse.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Idempiere;
  3. use App\Repository\Idempiere\MWarehouseRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=MWarehouseRepository::class)
  7. * @ORM\Table(name="m_warehouse")
  8. */
  9. class MWarehouse
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\Column(type="integer")
  14. */
  15. private $m_warehouse_id;
  16. /**
  17. * @ORM\Column(type="string", length=255)
  18. */
  19. private $name;
  20. /**
  21. * @ORM\Column(type="string", length=1)
  22. */
  23. private $isactive;
  24. /**
  25. * @ORM\ManyToOne(targetEntity=AdOrg::class, inversedBy="m_warehouse")
  26. * @ORM\JoinColumn(referencedColumnName="ad_org_id", nullable=false)
  27. */
  28. private $ad_org;
  29. /**
  30. * @ORM\Column(type="integer")
  31. */
  32. private $ad_org_id;
  33. /**
  34. * @ORM\Column(type="string", length=1)
  35. */
  36. private $isdefault;
  37. public function getId(): int
  38. {
  39. return $this->getMWarehouseId();
  40. }
  41. public function getMWarehouseId(): ?int
  42. {
  43. return $this->m_warehouse_id;
  44. }
  45. public function setMWarehouseId(int $m_warehouse_id): self
  46. {
  47. $this->m_warehouse_id = $m_warehouse_id;
  48. return $this;
  49. }
  50. public function getName(): ?string
  51. {
  52. return $this->name;
  53. }
  54. public function setName(string $name): self
  55. {
  56. $this->name = $name;
  57. return $this;
  58. }
  59. public function getIsactive(): ?string
  60. {
  61. return $this->isactive;
  62. }
  63. public function setIsactive(string $isactive): self
  64. {
  65. $this->isactive = $isactive;
  66. return $this;
  67. }
  68. public function getAdOrg(): ?AdOrg
  69. {
  70. return $this->ad_org;
  71. }
  72. public function setAdOrg(?AdOrg $ad_org): self
  73. {
  74. $this->ad_org = $ad_org;
  75. return $this;
  76. }
  77. public function getAdOrgId(): ?int
  78. {
  79. return $this->ad_org_id;
  80. }
  81. public function setAdOrgId(int $ad_org_id): self
  82. {
  83. $this->ad_org_id = $ad_org_id;
  84. return $this;
  85. }
  86. public function getIsdefault(): ?string
  87. {
  88. return $this->isdefault;
  89. }
  90. public function setIsdefault(string $isdefault): self
  91. {
  92. $this->isdefault = $isdefault;
  93. return $this;
  94. }
  95. }