modif entity company
This commit is contained in:
@@ -203,7 +203,14 @@ class Company
|
||||
* @Groups({"ad_list", "company_list", "company_detail"})
|
||||
*/
|
||||
private $countAds;
|
||||
|
||||
|
||||
/**
|
||||
* @var string $test
|
||||
* @ORM\Column(name="test", type="string", nullable=true)
|
||||
*/
|
||||
private $test;
|
||||
|
||||
/***********************
|
||||
* Constructor
|
||||
***********************/
|
||||
@@ -213,6 +220,9 @@ class Company
|
||||
$this->products = new \Doctrine\Common\Collections\ArrayCollection();
|
||||
$this->users = new \Doctrine\Common\Collections\ArrayCollection();
|
||||
$this->ads = new \Doctrine\Common\Collections\ArrayCollection();
|
||||
//$this->territories = new \Doctrine\Common\Collections\ArrayCollection();
|
||||
// $this->children = new \Doctrine\Common\Collections\ArrayCollection();
|
||||
// $this->parent = new \Doctrine\Common\Collections\ArrayCollection();
|
||||
$this->emphasis = false;
|
||||
}
|
||||
|
||||
@@ -929,4 +939,28 @@ class Company
|
||||
{
|
||||
return count($this->getPublishedAds());
|
||||
}
|
||||
|
||||
/**
|
||||
* Get $test
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTest()
|
||||
{
|
||||
return $this->test;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set $test
|
||||
*
|
||||
* @param string $test $test
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function setTest(string $test)
|
||||
{
|
||||
$this->test = $test;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user