Questions tagged [easyadmin]

EasyAdmin is a Symfony bundle that lets you create administration backends for Symfony applications with unprecedented simplicity.

EasyAdmin lets you create administration backends for Symfony applications with unprecedented simplicity.

Features

  • CRUD operations on Doctrine entities (create, edit, list, delete).
  • Full-text search, pagination and column sorting.
  • Fully responsive design (smartphones, tablets and desktops).
  • Translated into tens of languages.
  • Fast, simple and smart where appropriate.

Useful links

431 questions
5
votes
7 answers

Symfony EasyAdminBundle 3 override the createIndexQueryBuilder()

It said on the EasyAdminBundle doc For example, the index() action calls to a method named createIndexQueryBuilder() to create the Doctrine query builder used to get the results displayed on the index listing. If you want to customize that listing,…
Nel
  • 454
  • 5
  • 14
5
votes
0 answers

easyadmin bundle sort custom generated columns on sortable field

Have EasyAdmin bundle config like this, and added list fields, and some of them added marked as sortable, some not. And cant find nowhere how to make sortable field: 1) which is relation field from another entity. I.e. OtherEntityName.columnName; 2)…
Scorpioniz
  • 1,421
  • 3
  • 16
  • 36
5
votes
1 answer

symfony easyadmin form field type entity with filter list

I use symfony 3.4 and easycorp/easyadmin-bundle 1.17 This is my class "Quotation", the "artisan" field is an "under registration" of the "Person" entity (person.type = 1) : class Quotation { /** others fields... */ /** * 1 => 'artisan', 2 =>…
Johan Rm
  • 151
  • 1
  • 5
  • 17
4
votes
1 answer

Change CollectionField accordion name to entity title in EasyAdmin 4

I am using EasyAdmin 4.6 for a project and I have a CollectionField that display Needs entities nested to the Edit CRUD of another entity called JoinUs : The thing is, my Collection field is displaying my entities but I can't find a way to change…
ledukilian
  • 71
  • 6
4
votes
1 answer

EasyAdmin 4 - generate URL with filter

I need to redirect my user to CRUD index where filter "STATUS = ACTIVE" is applied. I've this: $url = $this->adminUrlGenerator ->setController(Customer::class) ->generateUrl(); return $this->redirect($url); But I can't…
Tim
  • 75
  • 1
  • 7
4
votes
1 answer

EasyAdmin Bundle problems while developing my web app

I am developing a symfony 5 web project and I have to make as an university project. I started from the admin part and I used the bundle easyadmin by easycorp. I made the crud first all good but then by advancing in the project I started receiving…
4
votes
1 answer

Detecting onChange event of Select2 in EasyAdmin

I am using EasyAdmin Bundle, which seems to use Select2 for internal select form fields. I am trying to capture the onChange event, but I cannot figure out why the following code does not work: $('#mySelect2Id').on('change', function () { …
Matteo Cacciola
  • 85
  • 1
  • 1
  • 8
4
votes
1 answer

EasyAdmin 3 Object of class DateTime could not be converted to string

I'm having a problem with easy admin 3. I followed the instructions of the symfony doc but I end up with this error: Object of class DateTime could not be converted to string when rendering the admin. Thank you for you help ! class…
4
votes
3 answers

Symfony 4 EasyAdmin how to encrypt passwords?

I am using EasyAdmin to add/edit users and wanted to ask if there is a possibility of encrypting your passwords? Password encryption worked previously when I used the Symfony 4 make:registration-form but I can't use that now, I have to use…
D. Gillard
  • 63
  • 1
  • 1
  • 5
4
votes
1 answer

How to get Entity in custom Form type in symfony EasyAdmin

I'm trying to add custom type to JSONB field as described in documentation: form: fields: - { property: 'attr', type: 'App\Form\Type\AttrType'} And class realization: class AttrType extends AbstractType { public function…
Ivanov
  • 115
  • 1
  • 7
4
votes
0 answers

Easyadmin CollectionType field is not saving the relationship oneToMany

I have a field collection type, but when i save it, its don't save the relationship oneToMany. My code is: Config.yml: Splitter: class: AppBundle\Entity\Splitter controller: AppBundle\Controller\EasyAdmin\SplitterController …
Lucas
  • 41
  • 2
3
votes
1 answer

Adding a global action in EasyAdmin, place my button underneath the table instead of above

I created a global Action : public function export( Admin $user, StructureRepository $structureRepository, ExportCsvEntity $exportCsvEntity, string $entityClass ): HttpFoundationResponse { $zipcodes =…
michouël
  • 35
  • 2
3
votes
1 answer

EasyAdmin 4 Image Field preserve value on edit

I am building simple admin panel using Easy Admin 4 and Symfony 6. Can't figure out how to preserve uploaded image value when editing entity. Image preview is not visible on Edit form also. Code is very simple: public function…
Bogdan Kuštan
  • 5,427
  • 1
  • 21
  • 30
3
votes
1 answer

How to use Association field in Symfony EasyAdmin 4

When I use: public function configureFields(string $pageName): iterable { return [ AssociationField::new('XYZ') ]; }` I get error "Object of class App\Entity\XYZ could not be converted to string" When I add…
Tim
  • 75
  • 1
  • 7
3
votes
0 answers

Add tag in a list with CollectionField in EasyAdmin

My tags and User entities are in ManyToMany's relation. In easyAdmin (edit page) I want to add a tag from a list so this is how I did in my UserCrudController : yield CollectionField::new('tags', 'Ajouter') With this, I have my input but I can't…
Micka Bup
  • 391
  • 1
  • 9
1
2
3
28 29