sonata-project / SonataDoctrineORMAdminBundle

Integrate Doctrine ORM into the SonataAdminBundle
https://docs.sonata-project.org/projects/SonataDoctrineORMAdminBundle
MIT License
445 stars 344 forks source link

Symfony 4.2 Sonata\Form\Type\CollectionType does not show collections #878

Closed Baltazar5000 closed 5 years ago

Baltazar5000 commented 5 years ago

Hello.

sonata-project/admin-bundle              3.43.0             = 3.43.0             The missing Symfony Admin Generator
sonata-project/block-bundle              3.13.0             = 3.13.0             Symfony SonataBlockBundle
sonata-project/cache                     2.0.1              = 2.0.1              Cache library
sonata-project/core-bundle               3.13.7             = 3.13.7             Symfony SonataCoreBundle
sonata-project/datagrid-bundle           2.4.0              = 2.4.0              Symfony SonataDatagridBundle
sonata-project/doctrine-extensions       1.1.3              = 1.1.3              Doctrine2 behavioral extensions
sonata-project/doctrine-orm-admin-bundle 3.6.3              = 3.6.3              Symfony Sonata / Integrate Doctrine ORM into the SonataAdminBundle
sonata-project/easy-extends-bundle       2.5.0              = 2.5.0              Symfony SonataEasyExtendsBundle
sonata-project/exporter                  1.10.0             = 1.10.0             Lightweight Exporter library
sonata-project/user-bundle               4.2.3              = 4.2.3              Symfony SonataUserBundle
symfony/asset                            v4.2.1             = v4.2.1             Symfony Asset Component
symfony/browser-kit                      v4.2.1             = v4.2.1             Symfony BrowserKit Component
symfony/cache                            v4.2.1             = v4.2.1             Symfony Cache component with PSR-6, PSR-16, and tags
symfony/config                           v4.2.1             = v4.2.1             Symfony Config Component
symfony/console                          v4.2.1             = v4.2.1             Symfony Console Component
symfony/contracts                        v1.0.2             = v1.0.2             A set of abstractions extracted out of the Symfony components
symfony/css-selector                     v4.2.1             = v4.2.1             Symfony CssSelector Component
symfony/debug                            v4.2.1             = v4.2.1             Symfony Debug Component
symfony/debug-bundle                     v4.2.1             = v4.2.1             Symfony DebugBundle
symfony/debug-pack                       v1.0.7             = v1.0.7             A debug pack for Symfony projects
symfony/dependency-injection             v4.2.1             = v4.2.1             Symfony DependencyInjection Component
symfony/doctrine-bridge                  v4.2.1             = v4.2.1             Symfony Doctrine Bridge
symfony/dom-crawler                      v4.2.1             = v4.2.1             Symfony DomCrawler Component
symfony/dotenv                           v4.2.1             = v4.2.1             Registers environment variables from a .env file
symfony/event-dispatcher                 v4.2.1             = v4.2.1             Symfony EventDispatcher Component
symfony/expression-language              v4.2.1             = v4.2.1             Symfony ExpressionLanguage Component
symfony/filesystem                       v4.2.1             = v4.2.1             Symfony Filesystem Component
symfony/finder                           v4.2.1             = v4.2.1             Symfony Finder Component
symfony/flex                             v1.1.8             = v1.1.8             Composer plugin for Symfony
symfony/form                             v4.2.1             = v4.2.1             Symfony Form Component
symfony/framework-bundle                 v4.2.1             = v4.2.1             Symfony FrameworkBundle
symfony/http-foundation                  v4.2.1             = v4.2.1             Symfony HttpFoundation Component
symfony/http-kernel                      v4.2.1             = v4.2.1             Symfony HttpKernel Component
symfony/inflector                        v4.2.1             = v4.2.1             Symfony Inflector Component
symfony/intl                             v4.2.1             = v4.2.1             A PHP replacement layer for the C intl extension that includes additional da...
symfony/maker-bundle                     v1.11.1            = v1.11.1            Symfony Maker helps you create empty commands, controllers, form classes, te...
symfony/monolog-bridge                   v4.2.1             = v4.2.1             Symfony Monolog Bridge
symfony/monolog-bundle                   v3.3.1             = v3.3.1             Symfony MonologBundle
symfony/options-resolver                 v4.2.1             = v4.2.1             Symfony OptionsResolver Component
symfony/orm-pack                         v1.0.5             = v1.0.5             A pack for the Doctrine ORM
symfony/panther                          v0.2.0             = v0.2.0             A browser testing and web scraping library for PHP and Symfony.
symfony/phpunit-bridge                   v4.2.1             = v4.2.1             Symfony PHPUnit Bridge
symfony/polyfill-intl-icu                v1.10.0            = v1.10.0            Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-mbstring                v1.10.0            = v1.10.0            Symfony polyfill for the Mbstring extension
symfony/polyfill-php72                   v1.10.0            = v1.10.0            Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/process                          v4.2.1             = v4.2.1             Symfony Process Component
symfony/profiler-pack                    v1.0.4             = v1.0.4             A pack for the Symfony web profiler
symfony/property-access                  v4.2.1             = v4.2.1             Symfony PropertyAccess Component
symfony/property-info                    v4.2.1             = v4.2.1             Symfony Property Info Component
symfony/routing                          v4.2.1             = v4.2.1             Symfony Routing Component
symfony/security-acl                     v3.0.1             = v3.0.1             Symfony Security Component - ACL (Access Control List)
symfony/security-bundle                  v4.2.1             = v4.2.1             Symfony SecurityBundle
symfony/security-core                    v4.2.1             = v4.2.1             Symfony Security Component - Core Library
symfony/security-csrf                    v4.2.1             = v4.2.1             Symfony Security Component - CSRF Library
symfony/security-guard                   v4.2.1             = v4.2.1             Symfony Security Component - Guard
symfony/security-http                    v4.2.1             = v4.2.1             Symfony Security Component - HTTP Integration
symfony/serializer                       v4.2.1             = v4.2.1             Symfony Serializer Component
symfony/serializer-pack                  v1.0.2             = v1.0.2             A pack for the Symfony serializer
symfony/stopwatch                        v4.2.1             = v4.2.1             Symfony Stopwatch Component
symfony/swiftmailer-bundle               v3.2.4             = v3.2.4             Symfony SwiftmailerBundle
symfony/templating                       v4.2.1             = v4.2.1             Symfony Templating Component
symfony/test-pack                        v1.0.5             = v1.0.5             A pack for functional and end-to-end testing within a Symfony app
symfony/translation                      v4.2.1             = v4.2.1             Symfony Translation Component
symfony/twig-bridge                      v4.2.1             = v4.2.1             Symfony Twig Bridge
symfony/twig-bundle                      v4.2.1             = v4.2.1             Symfony TwigBundle
symfony/validator                        v4.2.1             = v4.2.1             Symfony Validator Component
symfony/var-dumper                       v4.2.1             = v4.2.1             Symfony mechanism for exploring and dumping PHP variables
symfony/var-exporter                     v4.2.1             = v4.2.1             A blend of var_export() + serialize() to turn any serializable data structur...
symfony/web-link                         v4.2.1             = v4.2.1             Symfony WebLink Component
symfony/web-profiler-bundle              v4.2.1             = v4.2.1             Symfony WebProfilerBundle
symfony/web-server-bundle                v4.2.1             = v4.2.1             Symfony WebServerBundle
symfony/yaml                             v4.2.1             = v4.2.1             Symfony Yaml Component
twig/extensions                          v1.5.4             = v1.5.4             Common additional features for Twig that do not directly belong in core
twig/twig                                v2.6.0             = v2.6.0             Twig, the flexible, fast, and secure template language for PHP
PHP 7.1.7 (cli) (built: Jul  6 2017 16:51:52) ( ZTS MSVC14 (Visual C++ 2015) x64 )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies

Sonata\Form\Type\CollectionType does not show collections (div class="tab-content" is empty).

Sonata\CoreBundle\Form\Type\CollectionType - is deprecated and works well.

            ->add('items', CollectionType::class, [
                'label' => false,
                'by_reference' => false,
                'required' => false,
            ], [
                'edit' => 'inline',
                //'inline' => 'table',
            ])
greg0ire commented 5 years ago

You didn't fill the issue template, and it would have told us what version of sonata core you are using.

Baltazar5000 commented 5 years ago

You didn't fill the issue template, and it would have told us what version of sonata core you are using.

Updated

greg0ire commented 5 years ago

Thanks! Can you please tell us if this is related to/ solves your issue: https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/875 ?

Baltazar5000 commented 5 years ago

Thanks! Can you please tell us if this is related to/ solves your issue: sonata-project/SonataDoctrineORMAdminBundle#875 ?

Not sure

greg0ire commented 5 years ago

Can you try it? composer require sonata-project/doctrine-orm-admin-bundle dev-master as 3.6.42should let you try it

greg0ire commented 5 years ago

In fact I just created a release so composer require sonata-project/doctrine-orm-admin-bundle 3.7.0 should be enough

Baltazar5000 commented 5 years ago

Fixed. Thank you!

greg0ire commented 5 years ago

Great!