src/Entity/Idempiere/AdOrg.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Idempiere;
  3. use App\Repository\Idempiere\AdOrgRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=AdOrgRepository::class)
  9.  * @ORM\Table(name="AD_Org")
  10.  */
  11. class AdOrg
  12. {
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $ad_org_id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255)
  20.      */
  21.     private $name;
  22.     /**
  23.      * @ORM\Column(type="string", length=1)
  24.      */
  25.     private $isactive;
  26.     /**
  27.      * @ORM\Column(type="string", length=1)
  28.      */
  29.     private $issummary;
  30.     /**
  31.      * @ORM\Column(type="integer")
  32.      */
  33.     private $ad_client_id;
  34.     /**
  35.      * @ORM\Column(type="string", length=1)
  36.      */
  37.     private $isselected;
  38.     /**
  39.      * @ORM\OneToMany(targetEntity=MWarehouse::class, mappedBy="ad_org")
  40.      */
  41.     private $m_warehouse;
  42.     /**
  43.      * @ORM\Column(type="integer")
  44.      */
  45.     private $createdby;
  46.     /**
  47.      * @ORM\Column(type="integer")
  48.      */
  49.     private $updatedby;
  50.     /**
  51.      * @ORM\OneToMany(targetEntity=CInvoice::class, mappedBy="ad_org")
  52.      */
  53.     private $c_invoices;
  54.     /**
  55.      * @ORM\OneToMany(targetEntity=MInout::class, mappedBy="ad_org")
  56.      */
  57.     private $m_inouts;
  58.     /**
  59.      * @ORM\Column(type="string", length=40)
  60.      */
  61.     private $value;
  62.     /**
  63.      * @ORM\Column(type="string", length=255)
  64.      */
  65.     private $description;
  66.     /**
  67.      * @ORM\Column(type="string", length=36)
  68.      */
  69.     private $ad_org_uu;
  70.     /**
  71.      * @ORM\OneToMany(targetEntity=AdOrginfo::class, mappedBy="ad_org")
  72.      */
  73.     private $ad_orginfos;
  74.     /**
  75.      * @ORM\OneToMany(targetEntity=SmRelatedbrand::class, mappedBy="ad_org")
  76.      */
  77.     private $relatedbrands;
  78.     /**
  79.      * @ORM\OneToMany(targetEntity=AdUserOrgaccess::class, mappedBy="ad_org")
  80.      */
  81.     private $ad_user_orgaccesses;
  82.     /**
  83.      * @ORM\OneToMany(targetEntity=AdRoleOrgaccess::class, mappedBy="ad_org")
  84.      */
  85.     private $ad_role_orgaccesses;
  86.     public function __construct()
  87.     {
  88.         $this->m_warehouse = new ArrayCollection();
  89.         $this->c_invoices = new ArrayCollection();
  90.         $this->m_inouts = new ArrayCollection();
  91.         $this->ad_orginfos = new ArrayCollection();
  92.         $this->relatedbrands = new ArrayCollection();
  93.         $this->ad_user_orgaccesses = new ArrayCollection();
  94.         $this->ad_role_orgaccesses = new ArrayCollection();
  95.     }
  96.     public function getId(): ?int
  97.     {
  98.         return $this->getAdOrgId();
  99.     }
  100.     public function getAdOrgId(): ?int
  101.     {
  102.         return $this->ad_org_id;
  103.     }
  104.     public function setAdOrgId(int $ad_org_id): self
  105.     {
  106.         $this->ad_org_id $ad_org_id;
  107.         return $this;
  108.     }
  109.     public function getName(): ?string
  110.     {
  111.         return $this->name;
  112.     }
  113.     public function setName(string $name): self
  114.     {
  115.         $this->name $name;
  116.         return $this;
  117.     }
  118.     public function getIsactive(): ?string
  119.     {
  120.         return $this->isactive;
  121.     }
  122.     public function setIsactive(string $isactive): self
  123.     {
  124.         $this->isactive $isactive;
  125.         return $this;
  126.     }
  127.     public function getIssummary(): ?string
  128.     {
  129.         return $this->issummary;
  130.     }
  131.     public function setIssummary(string $issummary): self
  132.     {
  133.         $this->issummary $issummary;
  134.         return $this;
  135.     }
  136.     public function getAdClientId(): ?int
  137.     {
  138.         return $this->ad_client_id;
  139.     }
  140.     public function setAdClientId(int $ad_client_id): self
  141.     {
  142.         $this->ad_client_id $ad_client_id;
  143.         return $this;
  144.     }
  145.     public function getIsselected(): ?string
  146.     {
  147.         return $this->isselected;
  148.     }
  149.     public function setIsselected(string $isselected): self
  150.     {
  151.         $this->isselected $isselected;
  152.         return $this;
  153.     }
  154.     /**
  155.      * @return Collection|MWarehouse[]
  156.      */
  157.     public function getMWarehouse(): Collection
  158.     {
  159.         return $this->m_warehouse;
  160.     }
  161.     public function getCreatedby(): ?int
  162.     {
  163.         return $this->createdby;
  164.     }
  165.     public function setCreatedby(int $createdby): self
  166.     {
  167.         $this->createdby $createdby;
  168.         return $this;
  169.     }
  170.     public function getUpdatedby(): ?int
  171.     {
  172.         return $this->updatedby;
  173.     }
  174.     public function setUpdatedby(int $updatedby): self
  175.     {
  176.         $this->updatedby $updatedby;
  177.         return $this;
  178.     }
  179.     /**
  180.      * @return Collection|CInvoice[]
  181.      */
  182.     public function getCInvoices(): Collection
  183.     {
  184.         return $this->c_invoices;
  185.     }
  186.     /**
  187.      * @return Collection|MInout[]
  188.      */
  189.     public function getMInouts(): Collection
  190.     {
  191.         return $this->m_inouts;
  192.     }
  193.     public function getValue(): ?string
  194.     {
  195.         return $this->value;
  196.     }
  197.     public function setValue(string $value): self
  198.     {
  199.         $this->value $value;
  200.         return $this;
  201.     }
  202.     public function getDescription(): ?string
  203.     {
  204.         return $this->description;
  205.     }
  206.     public function setDescription(?string $description): self
  207.     {
  208.         $this->description $description;
  209.         return $this;
  210.     }
  211.     public function getAdOrgUu(): ?string
  212.     {
  213.         return $this->ad_org_uu;
  214.     }
  215.     public function setAdOrgUu(string $ad_org_uu): self
  216.     {
  217.         $this->ad_org_uu $ad_org_uu;
  218.         return $this;
  219.     }
  220.     /**
  221.      * @return Collection<int, AdOrginfo>
  222.      */
  223.     public function getInfos(): Collection
  224.     {
  225.         return $this->getAdOrginfo();
  226.     }
  227.     /**
  228.      * @return Collection<int, AdOrginfo>
  229.      */
  230.     public function getAdOrginfo(): Collection
  231.     {
  232.         return $this->ad_orginfos;
  233.     }
  234.     /**
  235.      * @return Collection<int, SmRelatedbrand>
  236.      */
  237.     public function getRelatedbrands(): Collection
  238.     {
  239.         return $this->relatedbrands;
  240.     }
  241.     /**
  242.      * @return Collection<int, AdUserOrgaccess>
  243.      */
  244.     public function getUserOrgAccess(): Collection
  245.     {
  246.         return $this->ad_user_orgaccesses;
  247.     }
  248.     /**
  249.      * @return Collection<int, AdRoleOrgaccess>
  250.      */
  251.     public function getRoleOrgAccess(): Collection
  252.     {
  253.         return $this->ad_role_orgaccesses;
  254.     }
  255. }