SonataAdminBundle: error with sonata_type_admin
Environment
Sonata packages
$ composer show sonata-project/*
sonata-project/admin-bundle 3.15.0 The missing Symfony Admin Generator
sonata-project/block-bundle 3.3.2 Symfony SonataBlockBundle
sonata-project/cache 1.0.7 Cache library
sonata-project/core-bundle 3.3.0 Symfony SonataCoreBundle
sonata-project/datagrid-bundle 2.2.1 Symfony SonataDatagridBundle
sonata-project/doctrine-orm-admin-bundle 3.1.4 Symfony Sonata / Integrate Doctrine ORM into the SonataAdminBundle
sonata-project/exporter 1.7.1 Lightweight Exporter library
Symfony packages
$ composer show symfony/*
symfony/monolog-bundle v3.1.0 Symfony MonologBundle
symfony/phpunit-bridge v3.2.6 Symfony PHPUnit Bridge
symfony/polyfill-apcu v1.3.0 Symfony polyfill backporting apcu_* functions to lower PHP versions
symfony/polyfill-intl-icu v1.3.0 Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-mbstring v1.3.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php56 v1.3.0 Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
symfony/polyfill-php70 v1.3.0 Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions
symfony/polyfill-util v1.3.0 Symfony utilities for portability of PHP codes
symfony/security-acl v3.0.0 Symfony Security Component - ACL (Access Control List)
symfony/swiftmailer-bundle v2.5.4 Symfony SwiftmailerBundle
symfony/symfony v3.2.6 The Symfony PHP framework
PHP version
$ php -v
PHP 7.0.15-0ubuntu0.16.10.4 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Xdebug v2.4.0, Copyright (c) 2002-2016, by Derick Rethans
with Zend OPcache v7.0.15-0ubuntu0.16.10.4, Copyright (c) 1999-2017, by Zend Technologies
Subject
I think it’s related to https://github.com/sonata-project/SonataAdminBundle/commit/3a75cad5e1d6e6e6dfcd8d639c5c4f8fb6678152
Steps to reproduce
/**
* @param FormMapper $formMapper
*/
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->add('address', 'sonata_type_admin', array(
'label' => false,
))
;
}
Expected results
many fields from Address Admin
Actual results
error:
Neither the property "addressaddress" nor one of the methods "getAddressaddress()", "addressaddress()", "isAddressaddress()", "hasAddressaddress()", "__get()" exist and have public access in class User
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 18 (17 by maintainers)
Commits related to this issue
- Revert "sanitize choice mask fields (#4405)" This reverts commit 3a75cad5e1d6e6e6dfcd8d639c5c4f8fb6678152, that proved to be faulty. Closes #4425 — committed to greg0ire/SonataAdminBundle by deleted user 7 years ago
I’ll take a look. Until this is fixed, I’ve downgraded
sonata-project/admin-bundleto 3.14.0, which fixes the problem for now.It’s merely a revert, I’m not really creating anything here. There’s not much you can do to help, except maybe find a proper fix