default submittime
This commit is contained in:
parent
340e99dad2
commit
97263e96c3
|
@ -9,6 +9,7 @@ use Symfony\Component\Form\FormError;
|
|||
|
||||
use App\Entity\Illustration as Entity;
|
||||
use App\Form\IllustrationType as Form;
|
||||
use DateTime;
|
||||
|
||||
class IllustrationController extends AbstractController
|
||||
{
|
||||
|
@ -57,6 +58,7 @@ class IllustrationController extends AbstractController
|
|||
// Initialisation de l'enregistrement
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
$data = new Entity();
|
||||
$data->setSubmittime(new DateTime());
|
||||
|
||||
// Permission
|
||||
if(!$this->getUser()->hasRole("ROLE_ADMIN")&&($by=="admin"||$by=="update")) {
|
||||
|
|
Loading…
Reference in New Issue