improve CRUD and switch to symfony3

This commit is contained in:
2018-06-05 14:53:30 +02:00
parent a1ee85b0c0
commit eda8f2c033
11 changed files with 167 additions and 78 deletions

View File

@@ -28,7 +28,7 @@ class Document implements HasScopeInterface
/**
* @ORM\Column(type="text")
*/
private $description;
private $description = '';
/**
* @ORM\ManyToOne(targetEntity="Chill\DocStoreBundle\Entity\DocumentCategory")
@@ -83,9 +83,9 @@ class Document implements HasScopeInterface
return $this->description;
}
public function setDescription(string $description): self
public function setDescription($description): self
{
$this->description = $description;
$this->description = (string) $description;
return $this;
}