sonata-project/SonataDoctrineORMAdminBundle — pull request #236 by javiern (2013-07-05 15:41:38+00:00)
Title: Update form_admin_fields.html.twig

if u have a related entity with 0 as id, the widget will not show the entity value since the if will evaluate to false. adding the check for isdefined will fix it.