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.     public function __construct()
  55.     {
  56.         $this->m_product = new ArrayCollection();
  57.         $this->sm_categoria_producto_marca = new ArrayCollection();
  58.         $this->relatedorgs = new ArrayCollection();
  59.     }
  60.     public function getId(): ?int
  61.     {
  62.         return $this->getSmMarcaId();
  63.     }
  64.     public function getAdClientId(): ?int
  65.     {
  66.         return $this->ad_client_id;
  67.     }
  68.     public function setAdClientId(int $ad_client_id): self
  69.     {
  70.         $this->ad_client_id $ad_client_id;
  71.         return $this;
  72.     }
  73.     public function getAdOrgId(): ?int
  74.     {
  75.         return $this->ad_org_id;
  76.     }
  77.     public function setAdOrgId(int $ad_org_id): self
  78.     {
  79.         $this->ad_org_id $ad_org_id;
  80.         return $this;
  81.     }
  82.     public function getSmMarcaId(): ?int
  83.     {
  84.         return $this->sm_marca_id;
  85.     }
  86.     public function setSmMarcaId(int $sm_marca_id): self
  87.     {
  88.         $this->sm_marca_id $sm_marca_id;
  89.         return $this;
  90.     }
  91.     public function getSmMarcatUu(): ?string
  92.     {
  93.         return $this->sm_marca_uu;
  94.     }
  95.     public function setSmMarcatUu(string $sm_marca_uu): self
  96.     {
  97.         $this->sm_marca_uu $sm_marca_uu;
  98.         return $this;
  99.     }
  100.     public function getName(): ?string
  101.     {
  102.         return $this->name;
  103.     }
  104.     public function setName(string $name): self
  105.     {
  106.         $this->name $name;
  107.         return $this;
  108.     }
  109.     /**
  110.      * @return Collection|MProduct[]
  111.      */
  112.     public function getMProduct(): Collection
  113.     {
  114.         return $this->m_product;
  115.     }
  116.     /**
  117.      * @return Collection|SmCategoriaProductoMarca[]
  118.      */
  119.     public function getSmCategoriaProductoMarca(): Collection
  120.     {
  121.         return $this->sm_categoria_producto_marca;
  122.     }
  123.     public function addSmCategoriaProductoMarca(SmCategoriaProductoMarca $smCategoriaProductoMarca): self
  124.     {
  125.         if (!$this->sm_categoria_producto_marca->contains($smCategoriaProductoMarca)) {
  126.             $this->sm_categoria_producto_marca[] = $smCategoriaProductoMarca;
  127.             $smCategoriaProductoMarca->setSmMarca($this);
  128.         }
  129.         return $this;
  130.     }
  131.     public function removeSmCategoriaProductoMarca(SmCategoriaProductoMarca $smCategoriaProductoMarca): self
  132.     {
  133.         if ($this->sm_categoria_producto_marca->removeElement($smCategoriaProductoMarca)) {
  134.             // set the owning side to null (unless already changed)
  135.             if ($smCategoriaProductoMarca->getSmMarca() === $this) {
  136.                 $smCategoriaProductoMarca->setSmMarca(null);
  137.             }
  138.         }
  139.         return $this;
  140.     }
  141.     public function getIsactive(): ?string
  142.     {
  143.         return $this->isactive;
  144.     }
  145.     public function setIsactive(string $isactive): self
  146.     {
  147.         $this->isactive $isactive;
  148.         return $this;
  149.     }
  150.     /**
  151.      * @return Collection<int, SmRelatedbrand>
  152.      */
  153.     public function getRelatedorgs(): Collection
  154.     {
  155.         return $this->relatedorgs;
  156.     }
  157.     public function getSmBpItemId(): ?int
  158.     {
  159.         return $this->sm_bp_item_id;
  160.     }
  161.     public function setSmBpItemId(?int $sm_bp_item_id): self
  162.     {
  163.         $this->sm_bp_item_id $sm_bp_item_id;
  164.         return $this;
  165.     }
  166. }