File tree Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments