0
... $form = $this->createFormBuilder($foo)
->add('deviceId', EntityType::class, array(
'class' => 'FooBundle:Foo',
'choice_label' => 'deviceId'
))
...
사용자가 deviceId의 어떤 옵션을 찾았는지 어떻게 알 수 있습니까?Symfony 엔티티 유형 - 선택한 값을 얻는 방법
...
if ($form->isSubmitted() && $form->isValid()) {
/*Getting the value that was selected
and doing something with it
for exampe removing it from the database*/
}
...
'$ form [ 'deviceId'] -> getData();'는 내가 찾던 것입니다. @DOZ 도움에 감사드립니다. –