buf fix in insert post default values

This commit is contained in:
Hesabix 2025-01-11 16:55:17 +00:00
parent 6898ddccc6
commit 1853967035
2 changed files with 9 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

View file

@ -49,4 +49,13 @@ class PostCrudController extends AbstractCrudController
; ;
} }
public function createEntity(string $entityFqcn)
{
$item = new Post();
$item->setSubmitter($this->getUser());
$item->setDateSubmit(time());
$item->setViews(0);
return $item;
}
} }