<?php
namespace App\Entity\Idempiere;
use App\Repository\Idempiere\AdOrgRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=AdOrgRepository::class)
* @ORM\Table(name="AD_Org")
*/
class AdOrg
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
*/
private $ad_org_id;
/**
* @ORM\Column(type="string", length=255)
*/
private $name;
/**
* @ORM\Column(type="string", length=1)
*/
private $isactive;
/**
* @ORM\Column(type="string", length=1)
*/
private $issummary;
/**
* @ORM\Column(type="integer")
*/
private $ad_client_id;
/**
* @ORM\Column(type="string", length=1)
*/
private $isselected;
/**
* @ORM\OneToMany(targetEntity=MWarehouse::class, mappedBy="ad_org")
*/
private $m_warehouse;
/**
* @ORM\Column(type="integer")
*/
private $createdby;
/**
* @ORM\Column(type="integer")
*/
private $updatedby;
/**
* @ORM\OneToMany(targetEntity=CInvoice::class, mappedBy="ad_org")
*/
private $c_invoices;
/**
* @ORM\OneToMany(targetEntity=MInout::class, mappedBy="ad_org")
*/
private $m_inouts;
/**
* @ORM\Column(type="string", length=40)
*/
private $value;
/**
* @ORM\Column(type="string", length=255)
*/
private $description;
/**
* @ORM\Column(type="string", length=36)
*/
private $ad_org_uu;
/**
* @ORM\OneToMany(targetEntity=AdOrginfo::class, mappedBy="ad_org")
*/
private $ad_orginfos;
/**
* @ORM\OneToMany(targetEntity=SmRelatedbrand::class, mappedBy="ad_org")
*/
private $relatedbrands;
/**
* @ORM\OneToMany(targetEntity=AdUserOrgaccess::class, mappedBy="ad_org")
*/
private $ad_user_orgaccesses;
/**
* @ORM\OneToMany(targetEntity=AdRoleOrgaccess::class, mappedBy="ad_org")
*/
private $ad_role_orgaccesses;
public function __construct()
{
$this->m_warehouse = new ArrayCollection();
$this->c_invoices = new ArrayCollection();
$this->m_inouts = new ArrayCollection();
$this->ad_orginfos = new ArrayCollection();
$this->relatedbrands = new ArrayCollection();
$this->ad_user_orgaccesses = new ArrayCollection();
$this->ad_role_orgaccesses = new ArrayCollection();
}
public function getId(): ?int
{
return $this->getAdOrgId();
}
public function getAdOrgId(): ?int
{
return $this->ad_org_id;
}
public function setAdOrgId(int $ad_org_id): self
{
$this->ad_org_id = $ad_org_id;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getIsactive(): ?string
{
return $this->isactive;
}
public function setIsactive(string $isactive): self
{
$this->isactive = $isactive;
return $this;
}
public function getIssummary(): ?string
{
return $this->issummary;
}
public function setIssummary(string $issummary): self
{
$this->issummary = $issummary;
return $this;
}
public function getAdClientId(): ?int
{
return $this->ad_client_id;
}
public function setAdClientId(int $ad_client_id): self
{
$this->ad_client_id = $ad_client_id;
return $this;
}
public function getIsselected(): ?string
{
return $this->isselected;
}
public function setIsselected(string $isselected): self
{
$this->isselected = $isselected;
return $this;
}
/**
* @return Collection|MWarehouse[]
*/
public function getMWarehouse(): Collection
{
return $this->m_warehouse;
}
public function getCreatedby(): ?int
{
return $this->createdby;
}
public function setCreatedby(int $createdby): self
{
$this->createdby = $createdby;
return $this;
}
public function getUpdatedby(): ?int
{
return $this->updatedby;
}
public function setUpdatedby(int $updatedby): self
{
$this->updatedby = $updatedby;
return $this;
}
/**
* @return Collection|CInvoice[]
*/
public function getCInvoices(): Collection
{
return $this->c_invoices;
}
/**
* @return Collection|MInout[]
*/
public function getMInouts(): Collection
{
return $this->m_inouts;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(string $value): self
{
$this->value = $value;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getAdOrgUu(): ?string
{
return $this->ad_org_uu;
}
public function setAdOrgUu(string $ad_org_uu): self
{
$this->ad_org_uu = $ad_org_uu;
return $this;
}
/**
* @return Collection<int, AdOrginfo>
*/
public function getInfos(): Collection
{
return $this->getAdOrginfo();
}
/**
* @return Collection<int, AdOrginfo>
*/
public function getAdOrginfo(): Collection
{
return $this->ad_orginfos;
}
/**
* @return Collection<int, SmRelatedbrand>
*/
public function getRelatedbrands(): Collection
{
return $this->relatedbrands;
}
/**
* @return Collection<int, AdUserOrgaccess>
*/
public function getUserOrgAccess(): Collection
{
return $this->ad_user_orgaccesses;
}
/**
* @return Collection<int, AdRoleOrgaccess>
*/
public function getRoleOrgAccess(): Collection
{
return $this->ad_role_orgaccesses;
}
}