Skip to content

Commit

Permalink
Fin ajout doctrine
Browse files Browse the repository at this point in the history
  • Loading branch information
Isnao committed Nov 12, 2020
1 parent 9d534a0 commit 76b5882
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Entity/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Entity;

use App\Repository\ArticleRepository;
use DateTimeInterface;
use Doctrine\ORM\Mapping as ORM;

/**
Expand Down Expand Up @@ -78,12 +79,12 @@ public function setContent(string $content): self
return $this;
}

public function getPublished(): ?\DateTimeInterface
public function getPublished(): ?DateTimeInterface
{
return $this->published;
}

public function setPublished(\DateTimeInterface $published): self
public function setPublished(DateTimeInterface $published): self
{
$this->published = $published;

Expand Down

0 comments on commit 76b5882

Please sign in to comment.