buf fix in insert post default values
This commit is contained in:
parent
6898ddccc6
commit
1853967035
BIN
public/uploaded/Restaurant-and-Cafe-Accounting (1).jpg
Normal file
BIN
public/uploaded/Restaurant-and-Cafe-Accounting (1).jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 150 KiB |
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue