Skip to content

Commit 5874859

Browse files
committed
main
1 parent 12283e3 commit 5874859

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

readme.md

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -149,50 +149,19 @@ class BrandEntity
149149
*/
150150
private Uuid $guid;
151151

152-
/**
153-
* @ORM\Column(name="created_at", type="datetime", nullable=false)
154-
*/
155-
private \DateTime $createdAt;
156-
157-
/**
158-
* @ORM\Column(name="updated_at", type="datetime", nullable=false)
159-
*/
160-
private \DateTime $updatedAt;
161-
162152
public function __construct(
163153
/**
164154
* @ORM\Column(length: 140)
165155
*/
166156
private readonly int $name,
167157
) {
168158
$this->guid = Uuid::v4();
169-
$this->updatedAt = new \DateTime('now');
170-
$this->createdAt = new \DateTime('now');
171-
}
172-
173-
/**
174-
* @ORM\PrePersist
175-
* @ORM\PreUpdate
176-
*/
177-
public function updatedTimestamps(): void
178-
{
179-
$this->updatedAt = new \DateTime('now');
180159
}
181160

182161
public function getGuid(): Uuid
183162
{
184163
return $this->guid;
185164
}
186-
187-
public function getCreatedAt(): \DateTime
188-
{
189-
return $this->createdAt;
190-
}
191-
192-
public function getUpdatedAt(): \DateTime
193-
{
194-
return $this->updatedAt;
195-
}
196165
}
197166
```
198167

0 commit comments

Comments
 (0)