src/Entity/Idempiere/SmUserProductaccess.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Idempiere;
  3. use App\Repository\Idempiere\SmUserProductaccessRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=SmUserProductaccessRepository::class)
  7. * @ORM\Table(name="SM_User_ProductAccess")
  8. */
  9. class SmUserProductaccess
  10. {
  11. /**
  12. * @ORM\Column(type="integer")
  13. */
  14. private $ad_client_id;
  15. /**
  16. * @ORM\Column(type="integer")
  17. */
  18. private $ad_org_id;
  19. /**
  20. * @ORM\ManyToOne(targetEntity=AdOrg::class)
  21. * @ORM\JoinColumn(referencedColumnName="ad_org_id", nullable=false)
  22. */
  23. private $ad_org;
  24. /**
  25. * @ORM\Column(type="integer", nullable=true)
  26. */
  27. private $ad_role_id;
  28. /**
  29. * @ORM\ManyToOne(targetEntity=AdRole::class)
  30. * @ORM\JoinColumn(referencedColumnName="ad_role_id")
  31. */
  32. private $ad_role;
  33. /**
  34. * @ORM\Column(type="integer", nullable=true)
  35. */
  36. private $ad_user_id;
  37. /**
  38. * @ORM\ManyToOne(targetEntity=AdUser::class)
  39. * @ORM\JoinColumn(referencedColumnName="ad_user_id")
  40. */
  41. private $ad_user;
  42. /**
  43. * @ORM\Column(type="datetime")
  44. */
  45. private $created;
  46. /**
  47. * @ORM\Column(type="integer")
  48. */
  49. private $createdby;
  50. /**
  51. * @ORM\Column(type="string", length=1)
  52. */
  53. private $isactive;
  54. /**
  55. * @ORM\Column(type="string", length=1)
  56. */
  57. private $isexclude;
  58. /**
  59. * @ORM\Column(type="string", length=1)
  60. */
  61. private $isshowstock;
  62. /**
  63. * @ORM\Column(type="integer")
  64. */
  65. private $m_product_id;
  66. /**
  67. * @ORM\ManyToOne(targetEntity=MProduct::class, inversedBy="sm_user_productaccesses")
  68. * @ORM\JoinColumn(referencedColumnName="m_product_id", nullable=false)
  69. */
  70. private $m_product;
  71. /**
  72. * @ORM\Column(type="string", length=1)
  73. */
  74. private $responsibletype;
  75. /**
  76. * @ORM\Id
  77. * @ORM\Column(type="integer")
  78. */
  79. private $sm_user_productaccess_id;
  80. /**
  81. * @ORM\Column(type="string", length=36)
  82. */
  83. private $sm_user_productaccess_uu;
  84. /**
  85. * @ORM\Column(type="datetime")
  86. */
  87. private $updated;
  88. /**
  89. * @ORM\Column(type="integer")
  90. */
  91. private $updatedby;
  92. public function getId(): ?int
  93. {
  94. return $this->getSmUserProductaccessId();
  95. }
  96. public function getAdClientId(): ?int
  97. {
  98. return $this->ad_client_id;
  99. }
  100. public function setAdClientId(int $ad_client_id): self
  101. {
  102. $this->ad_client_id = $ad_client_id;
  103. return $this;
  104. }
  105. public function getAdOrgId(): ?int
  106. {
  107. return $this->ad_org_id;
  108. }
  109. public function setAdOrgId(int $ad_org_id): self
  110. {
  111. $this->ad_org_id = $ad_org_id;
  112. return $this;
  113. }
  114. public function getAdOrg(): ?AdOrg
  115. {
  116. return $this->ad_org;
  117. }
  118. public function setAdOrg(?AdOrg $ad_org): self
  119. {
  120. $this->ad_org = $ad_org;
  121. return $this;
  122. }
  123. public function getAdRoleId(): ?int
  124. {
  125. return $this->ad_role_id;
  126. }
  127. public function setAdRoleId(int $ad_role_id): self
  128. {
  129. $this->ad_role_id = $ad_role_id;
  130. return $this;
  131. }
  132. public function getAdRole(): ?AdRole
  133. {
  134. return $this->ad_role;
  135. }
  136. public function setAdRole(?AdRole $ad_role): self
  137. {
  138. $this->ad_role = $ad_role;
  139. return $this;
  140. }
  141. public function getAdUserId(): ?int
  142. {
  143. return $this->ad_user_id;
  144. }
  145. public function setAdUserId(?int $ad_user_id): self
  146. {
  147. $this->ad_user_id = $ad_user_id;
  148. return $this;
  149. }
  150. public function getAdUser(): ?AdUser
  151. {
  152. return $this->ad_user;
  153. }
  154. public function setAdUser(?AdUser $ad_user): self
  155. {
  156. $this->ad_user = $ad_user;
  157. return $this;
  158. }
  159. public function getCreated(): ?\DateTimeInterface
  160. {
  161. return $this->created;
  162. }
  163. public function setCreated(\DateTimeInterface $created): self
  164. {
  165. $this->created = $created;
  166. return $this;
  167. }
  168. public function getCreatedby(): ?int
  169. {
  170. return $this->createdby;
  171. }
  172. public function setCreatedby(int $createdby): self
  173. {
  174. $this->createdby = $createdby;
  175. return $this;
  176. }
  177. public function getIsactive(): ?string
  178. {
  179. return $this->isactive;
  180. }
  181. public function setIsactive(string $isactive): self
  182. {
  183. $this->isactive = $isactive;
  184. return $this;
  185. }
  186. public function getIsexclude(): ?string
  187. {
  188. return $this->isexclude;
  189. }
  190. public function setIsexclude(string $isexclude): self
  191. {
  192. $this->isexclude = $isexclude;
  193. return $this;
  194. }
  195. public function getIsshowstock(): ?string
  196. {
  197. return $this->isshowstock;
  198. }
  199. public function setIsshowstock(string $isshowstock): self
  200. {
  201. $this->isshowstock = $isshowstock;
  202. return $this;
  203. }
  204. public function getMProductId(): ?int
  205. {
  206. return $this->m_product_id;
  207. }
  208. public function setMProductId(int $m_product_id): self
  209. {
  210. $this->m_product_id = $m_product_id;
  211. return $this;
  212. }
  213. public function getMProduct(): ?MProduct
  214. {
  215. return $this->m_product;
  216. }
  217. public function setMProduct(?MProduct $m_product): self
  218. {
  219. $this->m_product = $m_product;
  220. return $this;
  221. }
  222. public function getResponsibletype(): ?string
  223. {
  224. return $this->responsibletype;
  225. }
  226. public function setResponsibletype(string $responsibletype): self
  227. {
  228. $this->responsibletype = $responsibletype;
  229. return $this;
  230. }
  231. public function getSmUserProductaccessId(): ?int
  232. {
  233. return $this->sm_user_productaccess_id;
  234. }
  235. public function setSmUserProductaccessId(int $sm_user_productaccess_id): self
  236. {
  237. $this->sm_user_productaccess_id = $sm_user_productaccess_id;
  238. return $this;
  239. }
  240. public function getSmUserProductaccessUu(): ?string
  241. {
  242. return $this->sm_user_productaccess_uu;
  243. }
  244. public function setSmUserProductaccessUu(string $sm_user_productaccess_uu): self
  245. {
  246. $this->sm_user_productaccess_uu = $sm_user_productaccess_uu;
  247. return $this;
  248. }
  249. public function getUpdated(): ?\DateTimeInterface
  250. {
  251. return $this->updated;
  252. }
  253. public function setUpdated(\DateTimeInterface $updated): self
  254. {
  255. $this->updated = $updated;
  256. return $this;
  257. }
  258. public function getUpdatedby(): ?int
  259. {
  260. return $this->updatedby;
  261. }
  262. public function setUpdatedby(int $updatedby): self
  263. {
  264. $this->updatedby = $updatedby;
  265. return $this;
  266. }
  267. }