Questions tagged [symfony2-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

130 questions
10
votes
2 answers

Easy Admin - Display Full Country Name in Show Action

I have an Address entity which requires a country. In the associated form I am using Symfony's CountryType which displays a user-friendly selection of countries and stores its abbreviation in the entity (e.g. DE for Germany or CH for…
chrisp
  • 569
  • 4
  • 24
7
votes
1 answer

How to edit json data in a field in Easy Admin Bundle?

I have data table which looks like this: and I wanna edit json data in some user friendly form, not like this: It's possible to do it quickly, just to change some parameters?
Anton Smatanik
  • 587
  • 1
  • 9
  • 25
7
votes
1 answer

symfony easyadmin one to many form

i am new to the easyadmin bundle and i am looking if it is possible to add childs directly from the parent object So i got 3 objects : - Recipe namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Recipe * *…
Laurent Bertin
  • 151
  • 1
  • 5
6
votes
1 answer

Symfony EasyAdminBundle: Dql Filter entities in assotiation field on List not worrking

I have a form with association field type (list of related entities). There is Quizz entity with field entity "TypeQuizz" (@ORM\ManyToOne). Impossible to use DQl Filter to Display List Quizz . /** *…
6
votes
2 answers

Symfony EasyAdminBundle: Filter entities in assotiation field

I have a form with assotation field type (list of related entities). What I've been trying to achieve is to filter this list on "newAction" form (create new entity). For example, following screen below: There is a Survey entity with field…
5
votes
2 answers

EasyAdmin Symfony Date start from 2012 and end 2022

I'm new with Symfony and EasyAdmin. In my entity I have a birthday. But when I show it, it shows the start year 2012, end 2022. How can I fix it? This is the code: /** * @var \date * * @ORM\Column(name="birth_day", type="date") */ private…
inez pro
  • 53
  • 1
  • 4
5
votes
3 answers

How to setup format of datetime picker in easyadminbundle?

How can I change the default format used by the datetime picker of easyadminbundle? I understand I must change something in config.yml in type_options of field property. Or setup some different datetime format. But how or where?
Anton Smatanik
  • 587
  • 1
  • 9
  • 25
5
votes
3 answers

How to setup a custom form/page within EasyAdminBundle

I have been able to build a simple CRUD app for a project using the Symfony EasyAdminBundle and it has worked great for the normal entity based use cases. I have some additional use cases though where I want to do things like rebuilding data. For…
Andrew Rutter
  • 1,257
  • 2
  • 18
  • 34
5
votes
0 answers

Symfony EasyAdmin Bundle how to filter select options

I'm using symfony 3 + EasyAdmin bundle, in some entities I have a field "Sectors" that create a relation to another entity "Sector". Automatically EasyAdmin give me a select with all the sectors where the user can choose from. I need that the user…
4
votes
0 answers

Is it possible to use translation variable in easy admin?

I'm using the Easy Admin bundle to manage the back-end of my Symfony application. I'd like to translate the following message "max 200 characters" There are several properties that needs this kind of message so I'd like to make it more flexible…
Pierrick Rambaud
  • 1,726
  • 1
  • 20
  • 47
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
4 answers

Q: Symfony4 EasyAdmin oneToMany not saving in DB

I have 2 entities, Product (Produit) and Manufacturer (Fabricant). When I try to update them from Easy Admin, if I change the Manufacturer on the Product side, all good, it works and the Manufacturer admin does show the right amount of child…
lblessig
  • 81
  • 1
  • 5
4
votes
1 answer

How to display comma separated value in Easy Admin bundle Symfony

Where categories is multiple category collection? fields: - { property: 'categories' } I have try many type but still i am not able to display comma separated value, By default it is displaying number of items in array collection thanks for help !
4
votes
1 answer

EasyAdminBundle entity form fields customization

I am trying to make a standard "created_at" field readonly in the edit form. Following the doc you have to add the following configuration: MyEntity: form: fields: - { property: 'created_at', type_options: {…
COil
  • 7,201
  • 2
  • 50
  • 98
3
votes
2 answers

Catchable Fatal Error: Object of class Proxies\__CG__\AppBundle\Entity\Modelo could not be converted to string

I'm starting with Symfony 3 and EasyAdminBundle. My problem is when I tried to edit or create a entity with a foreign key I get an Exception: "Catchable Fatal Error: Object of class Proxies__CG__\AppBundle\Entity\Modelo could not be converted to …
sinaxtis
  • 69
  • 1
  • 9
1
2 3
8 9