sonata-project / SonataAdminBundle

The missing Symfony Admin Generator

Home Page:https://docs.sonata-project.org/projects/SonataAdminBundle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`Attr` option doesn't work in ModelAutocompleteType

pkameisha opened this issue · comments

Environment

Dev

Sonata packages

sonata-project/admin-bundle              4.22.4 4.22.4 The missing Symfony Admin Generator
sonata-project/block-bundle              4.18.0 4.20.0 Symfony SonataBlockBundle
sonata-project/cache                     2.2.0  2.2.0  Cache library
sonata-project/doctrine-extensions       2.1.0  2.2.0  Doctrine2 behavioral extensions
sonata-project/doctrine-orm-admin-bundle 4.9.1  4.10.0 Integrate Doctrine ORM into the SonataAdminBundle
sonata-project/exporter                  3.1.1  3.1.1  Lightweight Exporter library
sonata-project/form-extensions           1.18.1 1.18.1 Symfony form extensions
sonata-project/twig-extensions           1.12.0 2.0.0  Sonata twig extensions

Symfony packages

symfony/amqp-messenger             v5.4.15 v5.4.21 Symfony AMQP extension Messenger Bridge
symfony/asset                      v6.1.5  v6.2.7  Manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files and image files
symfony/browser-kit                v6.1.3  v6.2.7  Simulates the behavior of a web browser, allowing you to make requests, click on links and submit forms programmatically
symfony/cache                      v5.4.15 v6.2.7  Provides extended PSR-6, PSR-16 (and tags) implementations
symfony/cache-contracts            v2.5.2  v3.2.1  Generic abstractions related to caching
symfony/config                     v5.4.11 v6.2.7  Helps you find, load, combine, autofill and validate configuration values of any kind
symfony/console                    v5.4.15 v6.2.7  Eases the creation of beautiful and testable command line interfaces
symfony/css-selector               v6.1.3  v6.2.7  Converts CSS selectors to XPath expressions
symfony/dependency-injection       v5.4.16 v6.2.7  Allows you to standardize and centralize the way objects are constructed in your application
symfony/deprecation-contracts      v3.2.0  v3.2.1  A generic function and convention to trigger deprecation notices
symfony/doctrine-bridge            v5.4.15 v6.2.7  Provides integration for Doctrine with various Symfony components
symfony/doctrine-messenger         v6.1.4  v6.2.7  Symfony Doctrine Messenger Bridge
symfony/dom-crawler                v5.4.15 v6.2.7  Eases DOM navigation for HTML and XML documents
symfony/dotenv                     v5.4.5  v6.2.7  Registers environment variables from a .env file
symfony/error-handler              v5.4.15 v6.2.7  Provides tools to manage errors and ease debugging PHP code
symfony/event-dispatcher           v5.4.9  v6.2.7  Provides tools that allow your application components to communicate with each other by dispatching events and listening to them
symfony/event-dispatcher-contracts v2.5.2  v3.2.1  Generic abstractions related to dispatching event
symfony/expression-language        v5.4.14 v6.2.7  Provides an engine that can compile and evaluate expressions
symfony/filesystem                 v6.2.0  v6.2.7  Provides basic utilities for the filesystem
symfony/finder                     v5.4.11 v6.2.7  Finds files and directories via an intuitive fluent interface
symfony/flex                       v2.2.3  v2.2.5  Composer plugin for Symfony
symfony/form                       v5.4.16 v6.2.7  Allows to easily create, process and reuse HTML forms
symfony/framework-bundle           v5.4.16 v6.2.7  Provides a tight integration between Symfony components and the Symfony full-stack framework
symfony/http-client                v5.4.15 v6.2.7  Provides powerful methods to fetch HTTP resources synchronously or asynchronously
symfony/http-client-contracts      v2.5.2  v3.2.1  Generic abstractions related to HTTP clients
symfony/http-foundation            v5.4.16 v6.2.7  Defines an object-oriented layer for the HTTP specification
symfony/http-kernel                v5.4.16 v6.2.7  Provides a structured process for converting a Request into a Response
symfony/intl                       v5.4.15 v6.2.7  Provides a PHP replacement layer for the C intl extension that includes additional data from the ICU library
symfony/lock                       v5.4.15 v6.2.7  Creates and manages locks, a mechanism to provide exclusive access to a shared resource
symfony/mailer                     v5.4.15 v6.2.7  Helps sending emails
symfony/messenger                  v5.4.14 v6.2.7  Helps applications send and receive messages to/from other applications or via message queues
symfony/mime                       v6.1.8  v6.2.7  Allows manipulating MIME messages
symfony/monolog-bridge             v5.4.10 v6.2.7  Provides integration for Monolog with various Symfony components
symfony/monolog-bundle             v3.8.0  v3.8.0  Symfony MonologBundle
symfony/options-resolver           v5.4.11 v6.2.7  Provides an improved replacement for the array_replace PHP function
symfony/password-hasher            v5.4.11 v6.2.7  Provides password hashing utilities
symfony/phpunit-bridge             v5.4.14 v6.2.7  Provides utilities for PHPUnit, especially user deprecation notices management
symfony/polyfill-ctype             v1.27.0 v1.27.0 Symfony polyfill for ctype functions
symfony/polyfill-iconv             v1.27.0 v1.27.0 Symfony polyfill for the Iconv extension
symfony/polyfill-intl-grapheme     v1.27.0 v1.27.0 Symfony polyfill for intl's grapheme_* functions
symfony/polyfill-intl-icu          v1.27.0 v1.27.0 Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-intl-idn          v1.27.0 v1.27.0 Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-intl-normalizer   v1.27.0 v1.27.0 Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring          v1.27.0 v1.27.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php72             v1.27.0 v1.27.0 Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/polyfill-php73             v1.27.0 v1.27.0 Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
symfony/polyfill-php80             v1.27.0 v1.27.0 Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
symfony/polyfill-php81             v1.27.0 v1.27.0 Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions
symfony/process                    v6.1.3  v6.2.7  Executes commands in sub-processes
symfony/property-access            v5.4.15 v6.2.7  Provides functions to read and write from/to an object or array using a simple string notation
symfony/property-info              v5.4.16 v6.2.7  Extracts information about PHP class' properties using metadata of popular sources
symfony/redis-messenger            v6.0.15 v6.2.7  Symfony Redis extension Messenger Bridge
symfony/routing                    v5.4.15 v6.2.7  Maps an HTTP request to a set of configuration variables
symfony/runtime                    v5.4.11 v6.2.7  Enables decoupling PHP applications from global state
symfony/security-acl               v3.3.2  v3.3.2  Symfony Security Component - ACL (Access Control List)
symfony/security-bundle            v5.4.11 v6.2.7  Provides a tight integration of the Security component into the Symfony full-stack framework
symfony/security-core              v5.4.15 v6.2.7  Symfony Security Component - Core Library
symfony/security-csrf              v5.4.11 v6.2.7  Symfony Security Component - CSRF Library
symfony/security-guard             v5.4.13 v5.4.21 Symfony Security Component - Guard
symfony/security-http              v5.4.15 v6.2.7  Symfony Security Component - HTTP Integration
symfony/serializer                 v5.4.15 v6.2.7  Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.
symfony/service-contracts          v2.5.2  v3.2.1  Generic abstractions related to writing services
symfony/stopwatch                  v6.1.5  v6.2.7  Provides a way to profile code
symfony/string                     v6.2.2  v6.2.7  Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way
symfony/swiftmailer-bundle         v3.5.4  v3.5.4  Symfony SwiftmailerBundle
Package symfony/swiftmailer-bundle is abandoned, you should avoid using it. Use symfony/mailer instead.
symfony/templating                 v5.4.11 v6.2.7  Provides all the tools needed to build any kind of template system
symfony/test-pack                  1.0.10  v1.1.0  A pack for functional and end-to-end testing within a Symfony app
symfony/translation                v5.4.14 v6.2.7  Provides tools to internationalize your application
symfony/translation-contracts      v2.5.2  v3.2.1  Generic abstractions related to translation
symfony/twig-bridge                v5.4.16 v6.2.7  Provides integration for Twig with various Symfony components
symfony/twig-bundle                v5.4.8  v6.2.7  Provides a tight integration of Twig into the Symfony full-stack framework
symfony/validator                  v5.4.15 v6.2.7  Provides tools to validate values
symfony/var-dumper                 v6.2.2  v6.2.7  Provides mechanisms for walking through any arbitrary PHP variable
symfony/var-exporter               v6.2.2  v6.2.7  Allows exporting any serializable PHP data structure to plain PHP code
symfony/web-profiler-bundle        v5.4.14 v6.2.7  Provides a development tool that gives detailed information about the execution of any request
symfony/yaml                       v5.4.16 v6.2.7  Loads and dumps YAML files

PHP version

PHP 8.1.7 (cli) (built: Jun 23 2022 07:57:40) (NTS)

Subject

The main point is that I can't configure any style for field with type ModelAutocompleteType. Option width doesn't work as well.

Steps to reproduce

On picture

Screenshot 2023-03-13 at 17 59 33

Screenshot 2023-03-13 at 17 59 49

Expected results

Field is changed according to styles.

Actual results

Options are not applied