issues/27: prod baseline without task branch
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Entity\Behavior\UpdateTimestampTrait;
|
||||
use App\Repository\ArticleRepository;
|
||||
use Doctrine\DBAL\Types\Types;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
@@ -13,11 +12,8 @@ use Symfony\Component\Validator\Constraints as Assert;
|
||||
#[ORM\Table(name: 'article')]
|
||||
#[ORM\Index(name: 'idx_article_region_id', columns: ['region_id'])]
|
||||
#[ORM\Index(name: 'idx_article_active', columns: ['active'])]
|
||||
#[ORM\HasLifecycleCallbacks]
|
||||
class Article
|
||||
{
|
||||
use UpdateTimestampTrait;
|
||||
|
||||
#[Groups(['article:read'])]
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue(strategy: "IDENTITY")]
|
||||
@@ -60,8 +56,8 @@ class Article
|
||||
#[ORM\Column(type: Types::TEXT, nullable: true)]
|
||||
private ?string $content = null;
|
||||
|
||||
#[Groups(['article:read'])]
|
||||
#[ORM\Column(name: 'update_at', type: Types::DATETIME_IMMUTABLE, nullable: true)]
|
||||
#[Groups(['article:read', 'article:write'])]
|
||||
#[ORM\Column(name: 'update_at', type: Types::DATETIME_MUTABLE, nullable: true)]
|
||||
private ?\DateTimeInterface $updateAt = null;
|
||||
|
||||
public function getId(): ?int
|
||||
|
||||
Reference in New Issue
Block a user