我将我的symfony奏鸣曲从2.x更新为3.x,现在出现了这个上下文错误:
CRITICAL - Uncaught PHP Exception Twig_Error_Runtime: "An exception has
been thrown during the rendering of a template ("An exception occurred
while executing 'SELECT t0.name AS name_1, t0.enabled AS enabled_2,
t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.id AS
id_5 FROM context t0 WHERE t0.id = ?' with params ["default"]:
SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input
syntax for integer: "default"")."
文件vendor/sonata-project/admin-bundle/Resources/views/Helper/short-object-description.html.twig
中的
函数{{ admin.generateObjectUrl('edit', object, link_parameters) }}
任何想法为"default"
设置t0.id
?