src/Entity/Idempiere/SmMarca.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Idempiere;
  3. use App\Repository\Idempiere\SmMarcaRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8. * @ORM\Entity(repositoryClass=SmMarcaRepository::class)
  9. * @ORM\Table(name="sm_marca")
  10. */
  11. class SmMarca
  12. {
  13. /**
  14. * @ORM\Id
  15. * @ORM\Column(type="integer")
  16. */
  17. private $sm_marca_id;
  18. /**
  19. * @ORM\Column(type="string", length=36)
  20. */
  21. private $sm_marca_uu;
  22. /**
  23. * @ORM\Column(type="integer")
  24. */
  25. private $ad_client_id;
  26. /**
  27. * @ORM\Column(type="integer")
  28. */
  29. private $ad_org_id;
  30. /**
  31. * @ORM\Column(type="string", length=255)
  32. */
  33. private $name;
  34. /**
  35. * @ORM\OneToMany(targetEntity=MProduct::class, mappedBy="sm_marca")
  36. */
  37. private $m_product;
  38. /**
  39. * @ORM\OneToMany(targetEntity=SmCategoriaProductoMarca::class, mappedBy="sm_marca")
  40. */
  41. private $sm_categoria_producto_marca;
  42. /**
  43. * @ORM\Column(type="string", length=1)
  44. */
  45. private $isactive;
  46. /**
  47. * @ORM\OneToMany(targetEntity=SmRelatedbrand::class, mappedBy="sm_marca")
  48. */
  49. private $relatedorgs;
  50. /**
  51. * @ORM\Column(type="integer", nullable=true)
  52. */
  53. private $sm_bp_item_id;
  54. /**
  55. * @ORM\Column(type="string", length=1)
  56. */
  57. private $issold;
  58. /**
  59. * @ORM\Column(name="IsWeb", type="string", length=1)
  60. */
  61. private $IsWeb;
  62. public function __construct()
  63. {
  64. $this->m_product = new ArrayCollection();
  65. $this->sm_categoria_producto_marca = new ArrayCollection();
  66. $this->relatedorgs = new ArrayCollection();
  67. }
  68. public function getId(): ?int
  69. {
  70. return $this->getSmMarcaId();
  71. }
  72. public function getAdClientId(): ?int
  73. {
  74. return $this->ad_client_id;
  75. }
  76. public function setAdClientId(int $ad_client_id): self
  77. {
  78. $this->ad_client_id = $ad_client_id;
  79. return $this;
  80. }
  81. public function getAdOrgId(): ?int
  82. {
  83. return $this->ad_org_id;
  84. }
  85. public function setAdOrgId(int $ad_org_id): self
  86. {
  87. $this->ad_org_id = $ad_org_id;
  88. return $this;
  89. }
  90. public function getSmMarcaId(): ?int
  91. {
  92. return $this->sm_marca_id;
  93. }
  94. public function setSmMarcaId(int $sm_marca_id): self
  95. {
  96. $this->sm_marca_id = $sm_marca_id;
  97. return $this;
  98. }
  99. public function getSmMarcatUu(): ?string
  100. {
  101. return $this->sm_marca_uu;
  102. }
  103. public function setSmMarcatUu(string $sm_marca_uu): self
  104. {
  105. $this->sm_marca_uu = $sm_marca_uu;
  106. return $this;
  107. }
  108. public function getName(): ?string
  109. {
  110. return $this->name;
  111. }
  112. public function setName(string $name): self
  113. {
  114. $this->name = $name;
  115. return $this;
  116. }
  117. /**
  118. * @return Collection|MProduct[]
  119. */
  120. public function getMProduct(): Collection
  121. {
  122. return $this->m_product;
  123. }
  124. /**
  125. * @return Collection|SmCategoriaProductoMarca[]
  126. */
  127. public function getSmCategoriaProductoMarca(): Collection
  128. {
  129. return $this->sm_categoria_producto_marca;
  130. }
  131. public function addSmCategoriaProductoMarca(SmCategoriaProductoMarca $smCategoriaProductoMarca): self
  132. {
  133. if (!$this->sm_categoria_producto_marca->contains($smCategoriaProductoMarca)) {
  134. $this->sm_categoria_producto_marca[] = $smCategoriaProductoMarca;
  135. $smCategoriaProductoMarca->setSmMarca($this);
  136. }
  137. return $this;
  138. }
  139. public function removeSmCategoriaProductoMarca(SmCategoriaProductoMarca $smCategoriaProductoMarca): self
  140. {
  141. if ($this->sm_categoria_producto_marca->removeElement($smCategoriaProductoMarca)) {
  142. // set the owning side to null (unless already changed)
  143. if ($smCategoriaProductoMarca->getSmMarca() === $this) {
  144. $smCategoriaProductoMarca->setSmMarca(null);
  145. }
  146. }
  147. return $this;
  148. }
  149. public function getIsactive(): ?string
  150. {
  151. return $this->isactive;
  152. }
  153. public function setIsactive(string $isactive): self
  154. {
  155. $this->isactive = $isactive;
  156. return $this;
  157. }
  158. /**
  159. * @return Collection<int, SmRelatedbrand>
  160. */
  161. public function getRelatedorgs(): Collection
  162. {
  163. return $this->relatedorgs;
  164. }
  165. public function getSmBpItemId(): ?int
  166. {
  167. return $this->sm_bp_item_id;
  168. }
  169. public function setSmBpItemId(?int $sm_bp_item_id): self
  170. {
  171. $this->sm_bp_item_id = $sm_bp_item_id;
  172. return $this;
  173. }
  174. public function getIsWeb() : string {
  175. return $this->IsWeb;
  176. }
  177. }