Skip to content

Commit

Permalink
Fix annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenyeargin committed Mar 16, 2024
1 parent cace376 commit f3daccb
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/Entity/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,15 @@ class Article
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $contributorByline;

/**
* @Gedmo\Timestampable(on="create")
*/
#[ORM\Column(type: 'datetime')]
#[Gedmo\Timestampable(on: 'create')]
private $dateCreated;

#[ORM\Column(type: 'datetime')]
private $datePublished;

/**
* @Gedmo\Timestampable(on="update")
*/
#[ORM\Column(type: 'datetime')]
#[Gedmo\Timestampable(on: 'update')]
private $dateModified;

#[ORM\Column(type: 'text')]
Expand All @@ -69,10 +65,8 @@ class Article
#[ORM\Column(type: 'integer', nullable: true)]
private $legacyId;

/**
* @Gedmo\Slug(fields={"headline", "id"})
*/
#[ORM\Column(length: 128, unique: true)]
#[Gedmo\Slug(fields: ['headline', 'id'])]
private $slug;

#[ORM\OneToMany(targetEntity: 'App\Entity\Image', mappedBy: 'article', orphanRemoval: true, cascade: ['persist'])]
Expand Down

0 comments on commit f3daccb

Please sign in to comment.