php - EasyAdminBundle - Key "nullable" not found - Error on creating or editing items -


i want use easyadminbundle backend. after installation via composer got following error if click edit oder create button:

if click "create" button (or "edit" button) in backend, following error message:

key "nullable" array keys "css_class, format, help, label, type, fieldtype, datatype, virtual, sortable, template, type_options, fieldname, columnname, property" not exist in @easyadmin/form/bootstrap_3_horizontal_layout.html.twig @ line 39

i changed nothing on entities. easyadminconfiguration this:

easy_admin:     site_name: 'backend'     design:         form_theme: 'vertical'     entities:         blogpost:             class:      ni\blogbundle\entity\post             label:      artikel         blogkategorie:             class:      ni\blogbundle\entity\postcategory             label:      kategorien         benutzer:             class:      ni\userbundle\entity\user             label:      benutzerkonten         unternehmen:             class:      ni\companybundle\entity\company             label:      unternehmen 

any ideas?

there no default value vor "nullable" defined (see bugfix on github: https://github.com/javiereguiluz/easyadminbundle/commit/0fac932646280e4ede02f97430aab503108897fb).

resources/views/form/bootstrap_3_horizontal_layout.html.twig

     <div class="{{ block('form_group_class') }}">          {{ form_widget(form) }}       <div class="{{ block('form_group_class') }}">          {{ form_widget(form) }}  -            {% if _field_type in ['datetime', 'datetimetz', 'date', 'time'] , easyadmin.field.nullable %} +            {% if _field_type in ['datetime', 'datetimetz', 'date', 'time'] , easyadmin.field.nullable|default(false) %}              <div class="nullable-control">                  <label>                      <input type="checkbox" {% if data null %}checked="checked"{% endif %}> 

resources/views/form/bootstrap_3_layout.html.twig

      {{- form_label(form, _field_label|trans(_trans_parameters)) -}}      {{- form_widget(form) -}}  -        {% if _field_type in ['datetime', 'datetimetz', 'date', 'time'] , easyadmin.field.nullable %} +        {% if _field_type in ['datetime', 'datetimetz', 'date', 'time'] , easyadmin.field.nullable|default(false) %}          <div class="nullable-control">              <label>                  <input type="checkbox" {% if data null %}checked="checked"{% endif %}> 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -