issues/27: prod baseline without task branch
This commit is contained in:
+2
-7
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Entity\Behavior\UpdateTimestampTrait;
|
||||
use App\Repository\NewsRepository;
|
||||
use Doctrine\DBAL\Types\Types;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
@@ -12,13 +11,9 @@ use Symfony\Component\Serializer\Annotation\Groups;
|
||||
#[ORM\Table(name: 'news')]
|
||||
#[ORM\Index(name: 'idx_news_region_id', columns: ['region_id'])]
|
||||
#[ORM\Index(name: 'idx_news_active', columns: ['active'])]
|
||||
#[ORM\HasLifecycleCallbacks]
|
||||
class News
|
||||
{
|
||||
use UpdateTimestampTrait;
|
||||
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue(strategy: "IDENTITY")]
|
||||
#[ORM\Column(type: Types::INTEGER)]
|
||||
#[Groups(['news:read'])]
|
||||
private ?int $id = null;
|
||||
@@ -47,8 +42,8 @@ class News
|
||||
#[Groups(['news:read', 'news:write'])]
|
||||
private ?string $content = null;
|
||||
|
||||
#[ORM\Column(name: 'update_at', type: Types::DATETIME_IMMUTABLE, nullable: true)]
|
||||
#[Groups(['news:read'])]
|
||||
#[ORM\Column(name: 'update_at', type: Types::DATETIME_MUTABLE, nullable: true)]
|
||||
#[Groups(['news:read', 'news:write'])]
|
||||
private ?\DateTimeInterface $updateAt = null;
|
||||
|
||||
#[ORM\Column(name: 'link_el_price', type: Types::TEXT, nullable: true)]
|
||||
|
||||
Reference in New Issue
Block a user