sonata-project / SonataAdminBundle

The missing Symfony Admin Generator
https://docs.sonata-project.org/projects/SonataAdminBundle
MIT License
2.11k stars 1.26k forks source link

ContextErrorException when using composite foreign primary key #4609

Closed lukasz-zaroda closed 7 years ago

lukasz-zaroda commented 7 years ago

Environment

Sonata packages

sonata-project/admin-bundle              3.21.0 3.21.0 The missing Symfony Admin Generator
sonata-project/block-bundle              3.3.2  3.3.2  Symfony SonataBlockBundle
sonata-project/cache                     1.0.7  1.0.7  Cache library
sonata-project/core-bundle               3.4.0  3.4.0  Symfony SonataCoreBundle
sonata-project/datagrid-bundle           2.2.1  2.2.1  Symfony SonataDatagridBundle
sonata-project/doctrine-orm-admin-bundle 3.1.6  3.1.6  Symfony Sonata / Integrate Doctrine ORM into the SonataAdminBundle
sonata-project/exporter                  1.7.1  1.7.1  Lightweight Exporter library

Symfony packages

symfony/monolog-bundle     v3.1.0 v3.1.0 Symfony MonologBundle
symfony/phpunit-bridge     v3.3.6 v3.3.6 Symfony PHPUnit Bridge
symfony/polyfill-apcu      v1.4.0 v1.5.0 Symfony polyfill backporting apcu_* functions to lower PHP versions
symfony/polyfill-intl-icu  v1.4.0 v1.5.0 Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-mbstring  v1.4.0 v1.5.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php56     v1.4.0 v1.5.0 Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
symfony/polyfill-php70     v1.4.0 v1.5.0 Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions
symfony/polyfill-util      v1.4.0 v1.5.0 Symfony utilities for portability of PHP codes
symfony/security-acl       v3.0.0 v3.0.0 Symfony Security Component - ACL (Access Control List)
symfony/swiftmailer-bundle v2.6.3 v3.0.3 Symfony SwiftmailerBundle
symfony/symfony            v3.3.6 v3.3.6 The Symfony PHP framework

Doctrine version

doctrine/annotations              v1.5.0 v1.5.0 Docblock Annotations Parser
doctrine/cache                    v1.7.0 v1.7.0 Caching library offering an object-oriented API for many cache backends
doctrine/collections              v1.5.0 v1.5.0 Collections Abstraction library
doctrine/common                   v2.8.0 v2.8.0 Common Library for Doctrine projects
doctrine/data-fixtures            v1.2.2 v1.2.2 Data Fixtures for all Doctrine Object Managers
doctrine/dbal                     v2.6.1 v2.6.1 Database Abstraction Layer
doctrine/doctrine-bundle          1.7.0  1.7.0  Symfony DoctrineBundle
doctrine/doctrine-cache-bundle    1.3.0  1.3.0  Symfony Bundle for Doctrine Cache
doctrine/doctrine-fixtures-bundle 2.3.0  2.3.0  Symfony DoctrineFixturesBundle
doctrine/inflector                v1.2.0 v1.2.0 Common String Manipulations with regard to casing and singular/plural rules.
doctrine/instantiator             1.0.5  1.1.0  A small, lightweight utility to instantiate objects in PHP without invoki...
doctrine/lexer                    v1.0.1 v1.0.1 Base library for a lexer that can be used in Top-Down, Recursive Descent ...
doctrine/orm                      v2.5.8 v2.5.9 Object-Relational-Mapper for PHP

PHP version

PHP 7.1.7 (cli) (built: Jul  7 2017 17:21:59) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.1.7, Copyright (c) 1999-2017, by Zend Technologies
    with Xdebug v2.5.4, Copyright (c) 2002-2017, by Derick Rethans

Subject

I have an entity with composite foreign primary key (this is important):

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * @ORM\Table(name="student_course")
 * @ORM\Entity(repositoryClass="AppBundle\Repository\StudentCourseRepository")
 *
 * Class StudentCourse
 */
class StudentCourse
{
    /**
     * @ORM\Id()
     * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Student", inversedBy="studentCourses")
     * @Assert\NotBlank()
     */
    private $student;

    /**
     * @ORM\Id()
     * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Course", inversedBy="studentCourses")
     * @Assert\NotBlank()
     */
    private $course;

    /**
     * @ORM\Column(type="datetime")
     * @Assert\NotBlank()
     */
    private $startedAt;

    /**
     * @return mixed
     */
    public function getStartedAt()
    {
        return $this->startedAt;
    }

    /**
     * @param mixed $startedAt
     */
    public function setStartedAt($startedAt)
    {
        $this->startedAt = $startedAt;
    }

    /**
     * @return mixed
     */
    public function getStudent() {
        return $this->student;
    }

    /**
     * @param mixed $student
     */
    public function setStudent($student) {
        $this->student = $student;
    }

    /**
     * @return mixed
     */
    public function getCourse() {
        return $this->course;
    }

    /**
     * @param mixed $course
     */
    public function setCourse($course) {
        $this->course = $course;
    }
}

And an admin class:

namespace AppBundle\Admin;

use AppBundle\Entity\Course;
use AppBundle\Entity\Student;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\CoreBundle\Validator\ErrorElement;

class StudentCourseAdmin extends AbstractAdmin
{

    //protected $formOptions = array('validation_groups' => 'Default');

    protected function configureFormFields(FormMapper $formMapper)
    {
        $formMapper->add('student', 'entity', [
            'class' => Student::class,
            'choice_label' => 'lastName',
            'required' => true,
        ]);
        $formMapper->add('course', 'entity', [
            'class' => Course::class,
            'choice_label' => 'name',
            'required' => true,
        ]);
        $formMapper->add('startedAt', 'date', [
            'required' => true,
        ]);
    }

    /**
     * {@inheritdoc}
     */
    public function validate(ErrorElement $errorElement, $object)
    {
        $errorElement
            ->with('student')
                ->assertNotBlank()
            ->end()
            ->with('course')
                ->assertNotBlank()
            ->end();
    }

    protected function configureDatagridFilters(DatagridMapper $datagridMapper)
    {
        //$datagridMapper->add('student');
        //$datagridMapper->add('course');
    }

    protected function configureListFields(ListMapper $listMapper)
    {
        $listMapper->add('student');
        $listMapper->add('course');
        $listMapper->add('startedAt');
    }
}

Steps to reproduce

  1. Have no "Course" entities in the database.
  2. Go to form creating StudentCourse entity and submit it with an empty Course field.

Expected results

Validation error, because this field cannot be empty.

Actual results

An exception has been thrown during the rendering of a template ("Notice: Undefined index: course_id") in "SonataAdminBundle:CRUD:base_edit_form.html.twig".
Twig_Error_Runtime
Symfony\Component\Debug\Exception\
ContextErrorException
Notice: Undefined index: course_id

Observations

Exception comes from Doctrine trying to obtain entity state on the request of Sonata, however I think this is problem with Sonata, because I have no problems with vanilla Symfony forms.

In short, admin.id(object) is being run in the template, then Sonata tries to obtain objects id, and to determine Entity's state on the way -ModelManager is doing this:

        if (in_array($this->getEntityManager($entity)->getUnitOfWork()->getEntityState($entity), array(
            UnitOfWork::STATE_NEW,
            UnitOfWork::STATE_REMOVED,
        ), true)) {
            return;
        }

When obtaining the entity's state at this moment, in getEntityState method, IdentifierFlattener explodes.

It might be a bug in Doctrine, but at the same time, I have no problems with forms outside of Sonata, so it might be that Sonata runs something at really bad moment.

jlamur commented 7 years ago

Please add the full stacktrace of your error @lukasz-zaroda

lukasz-zaroda commented 7 years ago
Symfony\Component\Debug\Exception\ContextErrorException:
Notice: Undefined index: course_id

  at vendor/doctrine/orm/lib/Doctrine/ORM/Utility/IdentifierFlattener.php:92
  at Doctrine\ORM\Utility\IdentifierFlattener->flattenIdentifier(object(ClassMetadata), array('student' => object(Student)))
     (vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:1461)
  at Doctrine\ORM\UnitOfWork->getEntityState(object(StudentCourse))
     (vendor/sonata-project/doctrine-orm-admin-bundle/Model/ModelManager.php:417)
  at Sonata\DoctrineORMAdminBundle\Model\ModelManager->getNormalizedIdentifier(object(StudentCourse))
     (src/AppBundle/Admin/StudentCourseAdmin.php:71)
  at AppBundle\Admin\StudentCourseAdmin->getNormalizedIdentifier(object(StudentCourse))
     (src/AppBundle/Admin/StudentCourseAdmin.php:81)
  at AppBundle\Admin\StudentCourseAdmin->id(object(StudentCourse))
     (vendor/twig/twig/lib/Twig/Extension/Core.php:1595)
  at twig_get_attribute(object(Twig_Environment), object(Twig_Source), object(StudentCourseAdmin), 'id', array(object(StudentCourse)), 'method')
     (var/cache/dev/twig/68/683da6dd03825d475a13708c122b69756c55674fde343409d3e497c89b63cbd2.php:60)
  at __TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a->block_form(array('action' => 'create', 'form' => object(FormView), 'object' => object(StudentCourse), 'breadcrumbs_builder' => object(BreadcrumbsBuilder), 'admin' => object(StudentCourseAdmin), 'base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), '_preview' => null, 'form_helper' => object(__TwigTemplate_397c866309b70af396836f9734b86dd914e02ed802123671e577d3a86c9ebc95)), array('html_attributes' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_html_attributes'), 'meta_tags' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_meta_tags'), 'stylesheets' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_javascripts'), 'sonata_javascript_config' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_javascript_config'), 'sonata_javascript_pool' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_javascript_pool'), 'sonata_head_title' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_head_title'), 'body_attributes' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_body_attributes'), 'sonata_header' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_header'), 'sonata_header_noscript_warning' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_header_noscript_warning'), 'logo' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_logo'), 'sonata_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_nav'), 'sonata_breadcrumb' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_breadcrumb'), 'sonata_top_nav_menu' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_top_nav_menu'), 'sonata_top_nav_menu_add_block' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_top_nav_menu_add_block'), 'sonata_top_nav_menu_user_block' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_top_nav_menu_user_block'), 'sonata_wrapper' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_wrapper'), 'sonata_left_side' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_left_side'), 'sonata_side_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_side_nav'), 'sonata_sidebar_search' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_sidebar_search'), 'side_bar_before_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_before_nav'), 'side_bar_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_nav'), 'side_bar_after_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_after_nav'), 'side_bar_after_nav_content' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_after_nav_content'), 'sonata_page_content' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_page_content'), 'sonata_page_content_header' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_page_content_header'), 'sonata_page_content_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_page_content_nav'), 'tab_menu_navbar_header' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_tab_menu_navbar_header'), 'sonata_admin_content_actions_wrappers' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_admin_content_actions_wrappers'), 'sonata_admin_content' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_admin_content'), 'notice' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_notice'), 'bootlint' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_bootlint'), 'sonata_form_action_url' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_action_url'), 'sonata_form_attributes' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_attributes'), 'sonata_pre_fieldsets' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_pre_fieldsets'), 'sonata_tab_content' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_tab_content'), 'sonata_post_fieldsets' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_post_fieldsets'), 'formactions' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_formactions'), 'sonata_form_actions' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_actions'), 'parentForm' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_form'), 'title' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_title'), 'navbar_title' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_navbar_title'), 'actions' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_actions'), 'tab_menu' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_tab_menu'), 'form' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_form')))
     (vendor/twig/twig/lib/Twig/Template.php:188)
  at Twig_Template->displayBlock('parentForm', array('action' => 'create', 'form' => object(FormView), 'object' => object(StudentCourse), 'breadcrumbs_builder' => object(BreadcrumbsBuilder), 'admin' => object(StudentCourseAdmin), 'base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), '_preview' => null), array('html_attributes' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_html_attributes'), 'meta_tags' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_meta_tags'), 'stylesheets' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_javascripts'), 'sonata_javascript_config' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_javascript_config'), 'sonata_javascript_pool' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_javascript_pool'), 'sonata_head_title' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_head_title'), 'body_attributes' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_body_attributes'), 'sonata_header' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_header'), 'sonata_header_noscript_warning' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_header_noscript_warning'), 'logo' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_logo'), 'sonata_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_nav'), 'sonata_breadcrumb' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_breadcrumb'), 'sonata_top_nav_menu' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_top_nav_menu'), 'sonata_top_nav_menu_add_block' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_top_nav_menu_add_block'), 'sonata_top_nav_menu_user_block' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_top_nav_menu_user_block'), 'sonata_wrapper' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_wrapper'), 'sonata_left_side' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_left_side'), 'sonata_side_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_side_nav'), 'sonata_sidebar_search' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_sidebar_search'), 'side_bar_before_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_before_nav'), 'side_bar_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_nav'), 'side_bar_after_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_after_nav'), 'side_bar_after_nav_content' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_after_nav_content'), 'sonata_page_content' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_page_content'), 'sonata_page_content_header' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_page_content_header'), 'sonata_page_content_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_page_content_nav'), 'tab_menu_navbar_header' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_tab_menu_navbar_header'), 'sonata_admin_content_actions_wrappers' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_admin_content_actions_wrappers'), 'sonata_admin_content' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_admin_content'), 'notice' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_notice'), 'bootlint' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_bootlint'), 'sonata_form_action_url' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_action_url'), 'sonata_form_attributes' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_attributes'), 'sonata_pre_fieldsets' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_pre_fieldsets'), 'sonata_tab_content' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_tab_content'), 'sonata_post_fieldsets' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_post_fieldsets'), 'formactions' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_formactions'), 'sonata_form_actions' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_actions'), 'parentForm' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_form'), 'title' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_title'), 'navbar_title' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_navbar_title'), 'actions' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_actions'), 'tab_menu' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_tab_menu'), 'form' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_form')))
     (var/cache/dev/twig/b2/b219358a72426fd2e865a1230623ad69682086f3ff85b3d4a78fa44db26f1136.php:162)
  at __TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d->block_form(array('action' => 'create', 'form' => object(FormView), 'object' => object(StudentCourse), 'breadcrumbs_builder' => object(BreadcrumbsBuilder), 'admin' => object(StudentCourseAdmin), 'base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), '_preview' => null), array('html_attributes' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_html_attributes'), 'meta_tags' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_meta_tags'), 'stylesheets' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_javascripts'), 'sonata_javascript_config' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_javascript_config'), 'sonata_javascript_pool' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_javascript_pool'), 'sonata_head_title' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_head_title'), 'body_attributes' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_body_attributes'), 'sonata_header' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_header'), 'sonata_header_noscript_warning' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_header_noscript_warning'), 'logo' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_logo'), 'sonata_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_nav'), 'sonata_breadcrumb' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_breadcrumb'), 'sonata_top_nav_menu' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_top_nav_menu'), 'sonata_top_nav_menu_add_block' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_top_nav_menu_add_block'), 'sonata_top_nav_menu_user_block' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_top_nav_menu_user_block'), 'sonata_wrapper' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_wrapper'), 'sonata_left_side' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_left_side'), 'sonata_side_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_side_nav'), 'sonata_sidebar_search' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_sidebar_search'), 'side_bar_before_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_before_nav'), 'side_bar_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_nav'), 'side_bar_after_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_after_nav'), 'side_bar_after_nav_content' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_after_nav_content'), 'sonata_page_content' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_page_content'), 'sonata_page_content_header' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_page_content_header'), 'sonata_page_content_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_page_content_nav'), 'tab_menu_navbar_header' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_tab_menu_navbar_header'), 'sonata_admin_content_actions_wrappers' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_admin_content_actions_wrappers'), 'sonata_admin_content' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_admin_content'), 'notice' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_notice'), 'bootlint' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_bootlint'), 'sonata_form_action_url' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_action_url'), 'sonata_form_attributes' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_attributes'), 'sonata_pre_fieldsets' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_pre_fieldsets'), 'sonata_tab_content' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_tab_content'), 'sonata_post_fieldsets' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_post_fieldsets'), 'formactions' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_formactions'), 'sonata_form_actions' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_actions'), 'parentForm' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_form'), 'title' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_title'), 'navbar_title' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_navbar_title'), 'actions' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_actions'), 'tab_menu' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_tab_menu'), 'form' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_form')))
     (vendor/twig/twig/lib/Twig/Template.php:188)
  at Twig_Template->displayBlock('form', array('action' => 'create', 'form' => object(FormView), 'object' => object(StudentCourse), 'breadcrumbs_builder' => object(BreadcrumbsBuilder), 'admin' => object(StudentCourseAdmin), 'base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), '_preview' => null), array('html_attributes' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_html_attributes'), 'meta_tags' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_meta_tags'), 'stylesheets' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_javascripts'), 'sonata_javascript_config' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_javascript_config'), 'sonata_javascript_pool' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_javascript_pool'), 'sonata_head_title' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_head_title'), 'body_attributes' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_body_attributes'), 'sonata_header' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_header'), 'sonata_header_noscript_warning' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_header_noscript_warning'), 'logo' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_logo'), 'sonata_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_nav'), 'sonata_breadcrumb' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_breadcrumb'), 'sonata_top_nav_menu' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_top_nav_menu'), 'sonata_top_nav_menu_add_block' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_top_nav_menu_add_block'), 'sonata_top_nav_menu_user_block' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_top_nav_menu_user_block'), 'sonata_wrapper' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_wrapper'), 'sonata_left_side' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_left_side'), 'sonata_side_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_side_nav'), 'sonata_sidebar_search' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_sidebar_search'), 'side_bar_before_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_before_nav'), 'side_bar_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_nav'), 'side_bar_after_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_after_nav'), 'side_bar_after_nav_content' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_after_nav_content'), 'sonata_page_content' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_page_content'), 'sonata_page_content_header' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_page_content_header'), 'sonata_page_content_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_page_content_nav'), 'tab_menu_navbar_header' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_tab_menu_navbar_header'), 'sonata_admin_content_actions_wrappers' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_admin_content_actions_wrappers'), 'sonata_admin_content' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_admin_content'), 'notice' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_notice'), 'bootlint' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_bootlint'), 'sonata_form_action_url' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_action_url'), 'sonata_form_attributes' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_attributes'), 'sonata_pre_fieldsets' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_pre_fieldsets'), 'sonata_tab_content' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_tab_content'), 'sonata_post_fieldsets' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_post_fieldsets'), 'formactions' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_formactions'), 'sonata_form_actions' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_actions'), 'parentForm' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_form'), 'title' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_title'), 'navbar_title' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_navbar_title'), 'actions' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_actions'), 'tab_menu' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_tab_menu'), 'form' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_form')), true)
     (vendor/twig/twig/lib/Twig/Template.php:254)
  at Twig_Template->renderBlock('form', array('action' => 'create', 'form' => object(FormView), 'object' => object(StudentCourse), 'breadcrumbs_builder' => object(BreadcrumbsBuilder), 'admin' => object(StudentCourseAdmin), 'base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), '_preview' => null), array('html_attributes' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_html_attributes'), 'meta_tags' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_meta_tags'), 'stylesheets' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_javascripts'), 'sonata_javascript_config' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_javascript_config'), 'sonata_javascript_pool' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_javascript_pool'), 'sonata_head_title' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_head_title'), 'body_attributes' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_body_attributes'), 'sonata_header' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_header'), 'sonata_header_noscript_warning' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_header_noscript_warning'), 'logo' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_logo'), 'sonata_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_nav'), 'sonata_breadcrumb' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_breadcrumb'), 'sonata_top_nav_menu' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_top_nav_menu'), 'sonata_top_nav_menu_add_block' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_top_nav_menu_add_block'), 'sonata_top_nav_menu_user_block' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_top_nav_menu_user_block'), 'sonata_wrapper' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_wrapper'), 'sonata_left_side' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_left_side'), 'sonata_side_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_side_nav'), 'sonata_sidebar_search' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_sidebar_search'), 'side_bar_before_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_before_nav'), 'side_bar_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_nav'), 'side_bar_after_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_after_nav'), 'side_bar_after_nav_content' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_after_nav_content'), 'sonata_page_content' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_page_content'), 'sonata_page_content_header' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_page_content_header'), 'sonata_page_content_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_page_content_nav'), 'tab_menu_navbar_header' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_tab_menu_navbar_header'), 'sonata_admin_content_actions_wrappers' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_admin_content_actions_wrappers'), 'sonata_admin_content' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_admin_content'), 'notice' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_notice'), 'bootlint' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_bootlint'), 'sonata_form_action_url' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_action_url'), 'sonata_form_attributes' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_attributes'), 'sonata_pre_fieldsets' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_pre_fieldsets'), 'sonata_tab_content' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_tab_content'), 'sonata_post_fieldsets' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_post_fieldsets'), 'formactions' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_formactions'), 'sonata_form_actions' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_actions'), 'parentForm' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_form'), 'title' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_title'), 'navbar_title' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_navbar_title'), 'actions' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_actions'), 'tab_menu' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_tab_menu'), 'form' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_form')))
     (var/cache/dev/twig/a5/a5025cafe42257439c9e0b96080af8d9dfd88fab115995e35afaef7af40015ca.php:62)
  at __TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66->doDisplay(array('action' => 'create', 'form' => object(FormView), 'object' => object(StudentCourse), 'breadcrumbs_builder' => object(BreadcrumbsBuilder), 'admin' => object(StudentCourseAdmin), 'base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables), '_preview' => null), array('html_attributes' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_html_attributes'), 'meta_tags' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_meta_tags'), 'stylesheets' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_javascripts'), 'sonata_javascript_config' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_javascript_config'), 'sonata_javascript_pool' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_javascript_pool'), 'sonata_head_title' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_head_title'), 'body_attributes' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_body_attributes'), 'sonata_header' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_header'), 'sonata_header_noscript_warning' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_header_noscript_warning'), 'logo' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_logo'), 'sonata_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_nav'), 'sonata_breadcrumb' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_breadcrumb'), 'sonata_top_nav_menu' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_top_nav_menu'), 'sonata_top_nav_menu_add_block' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_top_nav_menu_add_block'), 'sonata_top_nav_menu_user_block' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_top_nav_menu_user_block'), 'sonata_wrapper' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_wrapper'), 'sonata_left_side' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_left_side'), 'sonata_side_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_side_nav'), 'sonata_sidebar_search' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_sidebar_search'), 'side_bar_before_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_before_nav'), 'side_bar_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_nav'), 'side_bar_after_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_after_nav'), 'side_bar_after_nav_content' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_after_nav_content'), 'sonata_page_content' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_page_content'), 'sonata_page_content_header' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_page_content_header'), 'sonata_page_content_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_page_content_nav'), 'tab_menu_navbar_header' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_tab_menu_navbar_header'), 'sonata_admin_content_actions_wrappers' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_admin_content_actions_wrappers'), 'sonata_admin_content' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_admin_content'), 'notice' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_notice'), 'bootlint' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_bootlint'), 'sonata_form_action_url' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_action_url'), 'sonata_form_attributes' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_attributes'), 'sonata_pre_fieldsets' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_pre_fieldsets'), 'sonata_tab_content' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_tab_content'), 'sonata_post_fieldsets' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_post_fieldsets'), 'formactions' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_formactions'), 'sonata_form_actions' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_actions'), 'parentForm' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_form'), 'title' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_title'), 'navbar_title' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_navbar_title'), 'actions' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_actions'), 'tab_menu' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_tab_menu'), 'form' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_form')))
     (vendor/twig/twig/lib/Twig/Template.php:389)
  at Twig_Template->displayWithErrorHandling(array('action' => 'create', 'form' => object(FormView), 'object' => object(StudentCourse), 'breadcrumbs_builder' => object(BreadcrumbsBuilder), 'admin' => object(StudentCourseAdmin), 'base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables)), array('html_attributes' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_html_attributes'), 'meta_tags' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_meta_tags'), 'stylesheets' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_stylesheets'), 'javascripts' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_javascripts'), 'sonata_javascript_config' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_javascript_config'), 'sonata_javascript_pool' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_javascript_pool'), 'sonata_head_title' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_head_title'), 'body_attributes' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_body_attributes'), 'sonata_header' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_header'), 'sonata_header_noscript_warning' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_header_noscript_warning'), 'logo' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_logo'), 'sonata_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_nav'), 'sonata_breadcrumb' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_breadcrumb'), 'sonata_top_nav_menu' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_top_nav_menu'), 'sonata_top_nav_menu_add_block' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_top_nav_menu_add_block'), 'sonata_top_nav_menu_user_block' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_top_nav_menu_user_block'), 'sonata_wrapper' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_wrapper'), 'sonata_left_side' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_left_side'), 'sonata_side_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_side_nav'), 'sonata_sidebar_search' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_sidebar_search'), 'side_bar_before_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_before_nav'), 'side_bar_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_nav'), 'side_bar_after_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_after_nav'), 'side_bar_after_nav_content' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_side_bar_after_nav_content'), 'sonata_page_content' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_page_content'), 'sonata_page_content_header' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_page_content_header'), 'sonata_page_content_nav' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_page_content_nav'), 'tab_menu_navbar_header' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_tab_menu_navbar_header'), 'sonata_admin_content_actions_wrappers' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_admin_content_actions_wrappers'), 'sonata_admin_content' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_sonata_admin_content'), 'notice' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_notice'), 'bootlint' => array(object(__TwigTemplate_44ebd81767e2841e3777428bf2565dd27ece37e55a5a3f9e074fa62cf77bdb66), 'block_bootlint'), 'sonata_form_action_url' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_action_url'), 'sonata_form_attributes' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_attributes'), 'sonata_pre_fieldsets' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_pre_fieldsets'), 'sonata_tab_content' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_tab_content'), 'sonata_post_fieldsets' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_post_fieldsets'), 'formactions' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_formactions'), 'sonata_form_actions' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_actions'), 'parentForm' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_form'), 'title' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_title'), 'navbar_title' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_navbar_title'), 'actions' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_actions'), 'tab_menu' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_tab_menu'), 'form' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_form')))
     (vendor/twig/twig/lib/Twig/Template.php:366)
  at Twig_Template->display(array('action' => 'create', 'form' => object(FormView), 'object' => object(StudentCourse), 'breadcrumbs_builder' => object(BreadcrumbsBuilder), 'admin' => object(StudentCourseAdmin), 'base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables)), array('sonata_form_action_url' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_action_url'), 'sonata_form_attributes' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_attributes'), 'sonata_pre_fieldsets' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_pre_fieldsets'), 'sonata_tab_content' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_tab_content'), 'sonata_post_fieldsets' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_post_fieldsets'), 'formactions' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_formactions'), 'sonata_form_actions' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_actions'), 'parentForm' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_form'), 'title' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_title'), 'navbar_title' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_navbar_title'), 'actions' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_actions'), 'tab_menu' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_tab_menu'), 'form' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_form')))
     (var/cache/dev/twig/b2/b219358a72426fd2e865a1230623ad69682086f3ff85b3d4a78fa44db26f1136.php:51)
  at __TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d->doDisplay(array('action' => 'create', 'form' => object(FormView), 'object' => object(StudentCourse), 'breadcrumbs_builder' => object(BreadcrumbsBuilder), 'admin' => object(StudentCourseAdmin), 'base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables)), array('sonata_form_action_url' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_action_url'), 'sonata_form_attributes' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_attributes'), 'sonata_pre_fieldsets' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_pre_fieldsets'), 'sonata_tab_content' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_tab_content'), 'sonata_post_fieldsets' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_post_fieldsets'), 'formactions' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_formactions'), 'sonata_form_actions' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_actions'), 'parentForm' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_form'), 'title' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_title'), 'navbar_title' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_navbar_title'), 'actions' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_actions'), 'tab_menu' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_tab_menu'), 'form' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_form')))
     (vendor/twig/twig/lib/Twig/Template.php:389)
  at Twig_Template->displayWithErrorHandling(array('action' => 'create', 'form' => object(FormView), 'object' => object(StudentCourse), 'breadcrumbs_builder' => object(BreadcrumbsBuilder), 'admin' => object(StudentCourseAdmin), 'base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables)), array('sonata_form_action_url' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_action_url'), 'sonata_form_attributes' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_attributes'), 'sonata_pre_fieldsets' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_pre_fieldsets'), 'sonata_tab_content' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_tab_content'), 'sonata_post_fieldsets' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_post_fieldsets'), 'formactions' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_formactions'), 'sonata_form_actions' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_sonata_form_actions'), 'parentForm' => array(object(__TwigTemplate_34ac7d8da295b822f2945c3f251ff224817560fc4b9874badf77ad700530378a), 'block_form'), 'title' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_title'), 'navbar_title' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_navbar_title'), 'actions' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_actions'), 'tab_menu' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_tab_menu'), 'form' => array(object(__TwigTemplate_2407332988e119cf7da119d7e02629ee8494a9b64e55d4f458293e76ed60773d), 'block_form')))
     (vendor/twig/twig/lib/Twig/Template.php:366)
  at Twig_Template->display(array('action' => 'create', 'form' => object(FormView), 'object' => object(StudentCourse), 'breadcrumbs_builder' => object(BreadcrumbsBuilder), 'admin' => object(StudentCourseAdmin), 'base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables)), array())
     (var/cache/dev/twig/3e/3eec31f52e3245feb6f5bed6764320e6eeb2c88e2610c31ef6a83071fefaec02.php:29)
  at __TwigTemplate_e48c5fe22156d1d70fc1cc0e92d16a0bddbf4f08a37e93bc272777eb8bf30559->doDisplay(array('action' => 'create', 'form' => object(FormView), 'object' => object(StudentCourse), 'breadcrumbs_builder' => object(BreadcrumbsBuilder), 'admin' => object(StudentCourseAdmin), 'base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables)), array())
     (vendor/twig/twig/lib/Twig/Template.php:389)
  at Twig_Template->displayWithErrorHandling(array('action' => 'create', 'form' => object(FormView), 'object' => object(StudentCourse), 'breadcrumbs_builder' => object(BreadcrumbsBuilder), 'admin' => object(StudentCourseAdmin), 'base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool), 'wrap_fields_with_addons' => true, 'app' => object(AppVariable), 'sonata_block' => object(GlobalVariables), 'sonata_admin' => object(GlobalVariables)), array())
     (vendor/twig/twig/lib/Twig/Template.php:366)
  at Twig_Template->display(array('action' => 'create', 'form' => object(FormView), 'object' => object(StudentCourse), 'breadcrumbs_builder' => object(BreadcrumbsBuilder), 'admin' => object(StudentCourseAdmin), 'base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool)))
     (vendor/twig/twig/lib/Twig/Template.php:374)
  at Twig_Template->render(array('action' => 'create', 'form' => object(FormView), 'object' => object(StudentCourse), 'breadcrumbs_builder' => object(BreadcrumbsBuilder), 'admin' => object(StudentCourseAdmin), 'base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool)))
     (vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php:49)
  at Symfony\Bridge\Twig\TwigEngine->render('SonataAdminBundle:CRUD:edit.html.twig', array('action' => 'create', 'form' => object(FormView), 'object' => object(StudentCourse), 'breadcrumbs_builder' => object(BreadcrumbsBuilder), 'admin' => object(StudentCourseAdmin), 'base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool)))
     (vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php:45)
  at Symfony\Bundle\TwigBundle\TwigEngine->render('SonataAdminBundle:CRUD:edit.html.twig', array('action' => 'create', 'form' => object(FormView), 'object' => object(StudentCourse), 'breadcrumbs_builder' => object(BreadcrumbsBuilder), 'admin' => object(StudentCourseAdmin), 'base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool)))
     (vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php:72)
  at Symfony\Bundle\TwigBundle\TwigEngine->renderResponse('SonataAdminBundle:CRUD:edit.html.twig', array('action' => 'create', 'form' => object(FormView), 'object' => object(StudentCourse), 'breadcrumbs_builder' => object(BreadcrumbsBuilder), 'admin' => object(StudentCourseAdmin), 'base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool)), object(Response))
     (vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php:234)
  at Symfony\Bundle\FrameworkBundle\Controller\Controller->render('SonataAdminBundle:CRUD:edit.html.twig', array('action' => 'create', 'form' => object(FormView), 'object' => object(StudentCourse), 'breadcrumbs_builder' => object(BreadcrumbsBuilder), 'admin' => object(StudentCourseAdmin), 'base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool)), null)
     (vendor/sonata-project/admin-bundle/Controller/CRUDController.php:77)
  at Sonata\AdminBundle\Controller\CRUDController->render('SonataAdminBundle:CRUD:edit.html.twig', array('action' => 'create', 'form' => object(FormView), 'object' => object(StudentCourse), 'breadcrumbs_builder' => object(BreadcrumbsBuilder), 'admin' => object(StudentCourseAdmin), 'base_template' => 'SonataAdminBundle::standard_layout.html.twig', 'admin_pool' => object(Pool)), null)
     (vendor/sonata-project/admin-bundle/Controller/CRUDController.php:574)
  at Sonata\AdminBundle\Controller\CRUDController->createAction()
  at call_user_func_array(array(object(CRUDController), 'createAction'), array())
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:153)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:171)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (web/app_dev.php:28)

There is also this Twig error runtime but this is only a consequence of the above.

thi3rry commented 7 years ago

I have the same Exception on a composite key form in dev environment. But the Exception is not raised in prod environment. Seems to be related to the IdentifierFlattener Class which try to convert foreign identifier to foreign key. I solved it by initialized in my classes my identifier to 0 or another value except null.

/**
 * @var integer
 *
 * @ORM\Column(type="integer", nullable=false)
 * @ORM\Id
 * @ORM\GeneratedValue(strategy="AUTO")
 */
private $id = 0;

And then the notice is not generated by Doctrine.

greg0ire commented 7 years ago

I think this might be a Doctrine issue instead of a Sonata issue... the stack trace suggests so, because this course_id is probably not provided by Sonata.

thi3rry commented 7 years ago

I think so yes : https://github.com/doctrine/doctrine2/issues/5631

greg0ire commented 7 years ago

Closing then