【发布时间】:2020-08-20 09:14:04
【问题描述】:
我正在安装包 Vichuploader (https://github.com/dustin10/VichUploaderBundle)。
为了在没有从实体更改其他输入时上传文件,我迁移了我的实体以添加 updated_at 字段。
此次迁移后,我的实体不再更新。 我可以毫无问题地创建一个新实体,但我有奇怪的(非 500)错误:
Fatal error: Maximum execution time of 30+2 seconds exceeded (terminated) in /Users/alphabetus/Documents/repos/fluid-cms/src/Controller/BlockController.php on line 181
ERROR| SERVER issue with server callback error="unable to fetch the response from the backend: unexpected EOF"
ERROR| SERVER POST (502) /admin/blocks/edit/706ae964-e2c1-11ea-b09a-69c7fbc1be88 host="127.0.0.1:8004" ip="::1" scheme="https"
我的第 181 行包含以下内容:
/**
* @return File\Null
*/
public function getImageFile()
{
return $this->image_file; // line 81
}
public function setImageFile(File $image_file = null): void
{
$this->image_file = $image_file;
if ($image_file) {
$this->updated_at = new \DateTime('none');
}
}
我是 symfony 的新手。我究竟做错了什么? 谢谢
【问题讨论】: