mirror of
https://github.com/ToxicCrack/PrintABrick.git
synced 2025-05-18 21:20:09 -07:00
Add name to Model entity
This commit is contained in:
parent
ad326c2cd2
commit
b04b0644b2
@ -22,6 +22,12 @@ class Model
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="name", type="string", length=255, nullable=true)
|
||||
*/
|
||||
private $name;
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
@ -53,7 +59,7 @@ class Model
|
||||
/**
|
||||
* @var Category
|
||||
*
|
||||
* @ORM\ManyToOne(targetEntity="AppBundle\Entity\Category", inversedBy="models")
|
||||
* @ORM\ManyToOne(targetEntity="AppBundle\Entity\Category", inversedBy="models", cascade={"persist"})
|
||||
*/
|
||||
private $category;
|
||||
|
||||
@ -67,6 +73,22 @@ class Model
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set number.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user