diff --git a/Dockerfile b/Dockerfile
index 82348fe530327c6e6dce25e7d730627b5f5d8592..d15450881894e9b13d8cb383c89732eacd684f5f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -61,7 +61,7 @@ RUN adduser nginx
 RUN addgroup nginx root
 RUN mkdir /var/cache/nginx
 RUN mkdir -p /var/lib/nginx/fastcgi
-RUN chmod -r 777 /var/cache/nginx  /var/log/nginx /var/lib/nginx
+RUN chmod  777 -r  /var/cache/nginx  /var/log/nginx /var/lib/nginx
 
 USER nginx
 # support running as arbitrary user which belongs to the root group
diff --git a/tms/src/Entity/Librairie.php b/tms/src/Entity/Librairie.php
index 8772632985388d9e8ef1014a1627f98ed63c508b..c30b2b26266de019c32825c04e31d6776aedac85 100644
--- a/tms/src/Entity/Librairie.php
+++ b/tms/src/Entity/Librairie.php
@@ -3,7 +3,6 @@
 namespace App\Entity;
 
 use Doctrine\ORM\Mapping as ORM;
-use Doctrine\ORM\EntityRepository;
 
 /**
  * Librairie
@@ -53,14 +52,14 @@ class Librairie
     /**
      * @var \DateTime
      *
-     * @ORM\Column(name="DateCreation", type="datetime", nullable=false)
+     * @ORM\Column(name="DateCreation", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
      */
-    private $datecreation;
+    private $datecreation = 'CURRENT_TIMESTAMP';
 
     /**
-     * @var \DateTime
+     * @var \DateTime|null
      *
-     * @ORM\Column(name="DateSuppression", type="datetime", nullable=false)
+     * @ORM\Column(name="DateSuppression", type="datetime", nullable=true)
      */
     private $datesuppression;
 
@@ -134,7 +133,7 @@ class Librairie
         return $this->datesuppression;
     }
 
-    public function setDatesuppression(\DateTimeInterface $datesuppression): self
+    public function setDatesuppression(?\DateTimeInterface $datesuppression): self
     {
         $this->datesuppression = $datesuppression;