Category: easyadmin

Symfony EasyAdmin 3.x ManyToMany error when adding : The Doctrine type of the …. field is "4", which is not supported by EasyAdmin yet

I’m trying to do a simple ManyToMany relation between two classes with easyAdmin 3.x , when I’m trying to show entity CRUD , I have constantly this error: The Doctrine type of the "salles" field is "4", which is not…

How to set the AssociationField choice label when using autocomplete() with EasyAdmin 3.x

Is it possible to use a property of the associated Entity as the choice label, rather than the associated Entity ID when using the autocomplete method on an AssociationField in an EasyAdmin EntityCrudController? Example: I have 3 Entities with the…

Symfony app.js & app.css in public/bundles/easyadmin not loading in production environnement

Console log Network status Files tree Hello , I can’t figure out why the app.js and app.css located in public/bundles/easyadmin can’t be loaded. In developpement environnement there is no problem, it only happens in production environnement. I can access to…

Unable to guess the MIME type as no guessers are available (have you enable the php_fileinfo extension?) | in Symfony 5.08

I got some error when i tried to upload image on easyadmin with vich_uploader. Unable to guess the MIME type as no guessers are available (have you enable the php_fileinfo extension?) I have enabled php_fileinfo extension but that didn’t solve…

symfony easyadmin how to create an autocompletion field with a many-to-many relationship with additional fields

class ImageGallery { … /** * @ORMManyToOne(targetEntity=”AppEntityMediaObject”, inversedBy=”imageGalleries”) * @ORMJoinColumn(nullable=false) */ private $image; /** * @ORMManyToOne(targetEntity=”AppEntityGallery”, inversedBy=”imageGalleries”) * @ORMJoinColumn(nullable=false) */ private $gallery; /** * @GedmoSortablePosition * @ORMColumn(type=”integer”) */ private $position; … class Gallery { … /** * @ GedmoSortableGroup *…

How to add dependant properties in an entity with Symfony and the EasyAdmin bundle? [closed]

I am currently working on my first Symfony project with the Symfony 5 and I am managing the back-end with the EasyAdmin Bundle. In this project, I have several entities: an Event can have many EventDate and an EventDate relates…