【发布时间】:2012-07-21 06:36:51
【问题描述】:
我正在使用 this 食谱食谱在 Symfon 2.1 中添加数据转换器,但我收到以下错误,The option "em" does not exist. Known options are: "attr", "block_name",....
这仍然是将实体管理器发送到表单类型的有效方式吗?
$taskForm = $this->createForm(new TaskType(), $task, array(
'em' => $this->getDoctrine()->getEntityManager(),
));
【问题讨论】:
标签: symfony-2.1 data-transfer-objects