<?php
namespace App\Entity;
use App\Repository\SubcategorieRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=SubcategorieRepository::class)
*/
class Subcategorie
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="integer",length=11, nullable=false)
*/
private $category_id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Categorie", cascade={"persist"})
*/
private $category;
/**
* @ORM\Column(type="string", length=255)
*/
private $name;
/**
* @ORM\Column(type="integer")
*/
private $status;
public function getId(): ?int
{
return $this->id;
}
public function getCategoryId(): ?string
{
return $this->category_id;
}
public function setCategoryId(string $category_id): self
{
$this->category_id = $category_id;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getStatus(): ?int
{
return $this->status;
}
public function setStatus(int $status): self
{
$this->status = $status;
return $this;
}
public function setCategory(\App\Entity\Categorie $category = null)
{
$this->category = $category;
return $this;
}
public function getCategory()
{
return $this->category;
}
}