Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

is not applicable to concrete nodes at path "sonata_customer.profile.menu." #640

Closed
salamichel opened this issue Jan 8, 2020 · 6 comments · Fixed by #641
Closed

is not applicable to concrete nodes at path "sonata_customer.profile.menu." #640

salamichel opened this issue Jan 8, 2020 · 6 comments · Fixed by #641

Comments

@salamichel
Copy link
Contributor

Composer update failed with error


ocramius/package-versions:  Generating version class...
ocramius/package-versions: ...done generating version class
Executing script cache:clear [KO]
 [KO]
Script cache:clear returned with error code 1
!!
!!  In ArrayNodeDefinition.php line 475:
!!                                                                              
!!    ->cannotBeEmpty() is not applicable to concrete nodes at path "sonata_customer.profile.menu."
!!                                                                              
!!
!!
Script @auto-scripts was called via post-update-cmd

@salamichel
Copy link
Contributor Author

@wbloszyk Hi! does it could be related to your enhancement ?

@wbloszyk
Copy link
Member

wbloszyk commented Jan 8, 2020

Hi, I got it in #1136, but after update configuration test all go right. In sandbox all works correct. Can you write your configuration by:

$ composer show --latest 'symfony/*'
$ composer show --latest 'sonata-project/*'

Also after merge SonataUserBundle commit, i want release 3.x sandbox. Then i can update it to 4.x(Symfony 4.x || 5.x). Both will be good tools to test sonata project packages.

@greg0ire What do you think about it?

@wbloszyk
Copy link
Member

wbloszyk commented Jan 8, 2020

@salamichel It is probably simmilar to 1up-lab/OneupFlysystemBundle#149. Can you check it by remove the same line? Anyway it is wird, becouse SonatUserBundle have tests for it, and its pass.

@salamichel
Copy link
Contributor Author

Hi if a comment the line it's works

                        ->arrayNode('menu')
                            ->info('Define your customer profile menu records here.')
                            ->prototype('array')
                                ->addDefaultsIfNotSet()
                                **->cannotBeEmpty()**
                                ->children()
 composer show --latest 'symfony/*'
Restricting packages listed in "symfony/symfony" to "4.3.*"
symfony/apache-pack                v1.0.1  v1.0.1  A pack for Apache support in Symfony
symfony/asset                      v4.3.9  v4.3.9  Symfony Asset Component
symfony/browser-kit                v4.3.9  v4.3.9  Symfony BrowserKit Component
symfony/cache                      v4.3.9  v4.3.9  Symfony Cache component with PSR-6, PSR-16, and tags
symfony/cache-contracts            v1.1.7  v2.0.1  Generic abstractions related to caching
symfony/config                     v4.3.9  v4.3.9  Symfony Config Component
symfony/console                    v4.3.9  v4.3.9  Symfony Console Component
symfony/css-selector               v4.3.9  v4.3.9  Symfony CssSelector Component
symfony/debug                      v4.3.9  v4.3.9  Symfony Debug Component
symfony/dependency-injection       v4.3.9  v4.3.9  Symfony DependencyInjection Component
symfony/doctrine-bridge            v4.3.9  v4.3.9  Symfony Doctrine Bridge
symfony/dom-crawler                v4.3.9  v4.3.9  Symfony DomCrawler Component
symfony/dotenv                     v4.3.9  v4.3.9  Registers environment variables from a .env file
symfony/event-dispatcher           v4.3.9  v4.3.9  Symfony EventDispatcher Component
symfony/event-dispatcher-contracts v1.1.7  v2.0.1  Generic abstractions related to dispatching event
symfony/expression-language        v4.3.9  v4.3.9  Symfony ExpressionLanguage Component
symfony/filesystem                 v4.3.9  v4.3.9  Symfony Filesystem Component
symfony/finder                     v4.3.9  v4.3.9  Symfony Finder Component
symfony/flex                       v1.6.0  v1.6.0  Composer plugin for Symfony
symfony/form                       v4.3.9  v4.3.9  Symfony Form Component
symfony/framework-bundle           v4.3.9  v4.3.9  Symfony FrameworkBundle
symfony/http-foundation            v4.3.9  v4.3.9  Symfony HttpFoundation Component
symfony/http-kernel                v4.3.9  v4.3.9  Symfony HttpKernel Component
symfony/inflector                  v4.3.9  v4.3.9  Symfony Inflector Component
symfony/intl                       v4.3.9  v4.3.9  A PHP replacement layer for the C intl extension that includes a...
symfony/maker-bundle               v1.14.3 v1.14.3 Symfony Maker helps you create empty commands, controllers, form...
symfony/mime                       v4.3.9  v4.3.9  A library to manipulate MIME messages
symfony/monolog-bridge             v4.3.9  v4.3.9  Symfony Monolog Bridge
symfony/monolog-bundle             v3.5.0  v3.5.0  Symfony MonologBundle
symfony/options-resolver           v4.3.9  v4.3.9  Symfony OptionsResolver Component
symfony/phpunit-bridge             v5.0.2  v5.0.2  Symfony PHPUnit Bridge
symfony/polyfill-intl-icu          v1.13.1 v1.13.1 Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-intl-idn          v1.13.1 v1.13.1 Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-mbstring          v1.13.1 v1.13.1 Symfony polyfill for the Mbstring extension
symfony/polyfill-php72             v1.13.1 v1.13.1 Symfony polyfill backporting some PHP 7.2+ features to lower PHP...
symfony/polyfill-php73             v1.13.1 v1.13.1 Symfony polyfill backporting some PHP 7.3+ features to lower PHP...
symfony/process                    v4.3.9  v4.3.9  Symfony Process Component
symfony/profiler-pack              v1.0.4  v1.0.4  A pack for the Symfony web profiler
symfony/property-access            v4.3.9  v4.3.9  Symfony PropertyAccess Component
symfony/routing                    v4.3.9  v4.3.9  Symfony Routing Component
symfony/security-acl               v3.0.4  v3.0.4  Symfony Security Component - ACL (Access Control List)
symfony/security-bundle            v4.3.9  v4.3.9  Symfony SecurityBundle
symfony/security-core              v4.3.9  v4.3.9  Symfony Security Component - Core Library
symfony/security-csrf              v4.3.9  v4.3.9  Symfony Security Component - CSRF Library
symfony/security-guard             v4.3.9  v4.3.9  Symfony Security Component - Guard
symfony/security-http              v4.3.9  v4.3.9  Symfony Security Component - HTTP Integration
symfony/service-contracts          v1.1.8  v2.0.1  Generic abstractions related to writing services
symfony/stopwatch                  v4.3.9  v4.3.9  Symfony Stopwatch Component
symfony/swiftmailer-bundle         v3.4.0  v3.4.0  Symfony SwiftmailerBundle
symfony/templating                 v4.3.9  v4.3.9  Symfony Templating Component
symfony/test-pack                  v1.0.6  v1.0.6  A pack for functional and end-to-end testing within a Symfony app
symfony/translation                v4.3.9  v4.3.9  Symfony Translation Component
symfony/translation-contracts      v1.1.7  v2.0.1  Generic abstractions related to translation
symfony/twig-bridge                v4.3.9  v4.3.9  Symfony Twig Bridge
symfony/twig-bundle                v4.3.9  v4.3.9  Symfony TwigBundle
symfony/validator                  v4.3.9  v4.3.9  Symfony Validator Component
symfony/var-dumper                 v4.3.9  v4.3.9  Symfony mechanism for exploring and dumping PHP variables
symfony/var-exporter               v4.3.9  v4.3.9  A blend of var_export() + serialize() to turn any serializable d...
symfony/web-profiler-bundle        v4.3.9  v4.3.9  Symfony WebProfilerBundle
symfony/web-server-bundle          v4.3.9  v4.3.9  Symfony WebServerBundle
symfony/webpack-encore-bundle      v1.7.2  v1.7.2  Integration with your Symfony app & Webpack Encore!
symfony/yaml                       v4.3.9  v4.3.9  Symfony Yaml Component


 composer show --latest 'sonata-project/*'
sonata-project/admin-bundle              3.x-dev 44b8206    dev-master f6b4c4b The missing Symfony Admin Generator
sonata-project/block-bundle              3.x-dev 3ed57da    3.x-dev 3ed57da    Symfony SonataBlockBundle
sonata-project/cache                     2.0.1              2.0.1              Cache library
sonata-project/classification-bundle     3.x-dev e999a4f    dev-master cc276ec Symfony SonataClassificationBundle
sonata-project/comment-bundle            3.1.1              3.1.1              Integrate the FOSCommentBundle in th...
sonata-project/core-bundle               3.x-dev 04e051a    dev-master 5290847 Symfony SonataCoreBundle (abandoned)
sonata-project/datagrid-bundle           2.5.0              3.1.1              Symfony SonataDatagridBundle
sonata-project/doctrine-extensions       1.5.1              1.5.1              Doctrine2 behavioral extensions
sonata-project/doctrine-orm-admin-bundle 3.x-dev 8283fb9    dev-master 008aa66 Symfony Sonata / Integrate Doctrine ...
sonata-project/easy-extends-bundle       2.5.0              2.5.0              Symfony SonataEasyExtendsBundle
sonata-project/ecommerce                 3.x-dev 2708de5    dev-master b2a727e E-Commerce solution provided by Sonata
sonata-project/exporter                  2.0.1              2.0.1              Lightweight Exporter library
sonata-project/formatter-bundle          4.1.3              4.1.3              Symfony SonataFormatterBundle
sonata-project/intl-bundle               2.7.0              2.7.0              Symfony SonataIntlBundle
sonata-project/media-bundle              3.x-dev 6172630    dev-master ec07ac6 Symfony SonataMediaBundle
sonata-project/media-orm-pack            dev-master 931be8a dev-master 931be8a A pack for SonataMediaBundle with OR...
sonata-project/notification-bundle       3.6.2              3.6.2              Symfony SonataNotificationBundle
sonata-project/seo-bundle                2.9.0              2.9.0              Symfony SonataSeoBundle
sonata-project/timeline-bundle           3.4.0              3.4.0              Integrates SpyTimelineBundle into So...
sonata-project/user-bundle               4.x-dev 609662a    dev-master 47307e9 Symfony SonataUserBundle

@wbloszyk
Copy link
Member

wbloszyk commented Jan 9, 2020

Ok. I will fix it with some new tests. After that @greg0ire can release next minor version with collection update and this patch?

@greg0ire
Copy link
Contributor

greg0ire commented Jan 9, 2020

Sure

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants