Questions tagged [easyadmin3]

83 questions
0
votes
0 answers

Symfony 4 - how to disable filter based on other filter in EasyAdmin

Is there any way to disable filters based on selected option in Easy Admin ? For example, I have a select operation with 3 options : campaign, channel and file, and I want to disable text filter team when file option is selected Here is my code…
zackzulg
  • 599
  • 2
  • 5
  • 21
0
votes
0 answers

how do I pass options to the configureCrud detail template?

I need to pass here admin/country.HTML.twig object with data or any data like public function configureCrud(Crud $crud): Crud { return $crud ->overrideTemplates([ 'crud/detail' => 'admin/country.html.twig', ]) …
0
votes
2 answers

Unrecognized options "default_entity_manager, entity_managers" under "doctrine". Available options are "dbal", "orm". in symfony 5.4

In Symfony 5.4, I am using the Easyadmin bundle, but during the multiple connections, I am facing some challenges. In doctrine.yaml file, doctrine: dbal: default_connection: default connections: default: …
0
votes
0 answers

Problem when using duplicate AssociationField fields of the same EasyAdmin entity

EasyAdmin 4 There is an M2M relationship between Product and AttributeValue. There can be thousands of rows in AttributeValue, and to make it easier to create/edit products, you need to divide the values by attribute, which is actually done through…
Andrew
  • 1
  • 2
0
votes
1 answer

How to display associated objects with links to their details page in Symfony 5 EasyAdmin 3?

I have two entities, Offer and Candidate, with a OneToMany relationship between them. The relevant code parts are the followings: In Offer.php: /** * @ORM\OneToMany(targetEntity=Candidate::class, mappedBy="offer", orphanRemoval=true) …
0
votes
1 answer

Error with date/time fields in EasyAdmin once deployed on Heroku

I work on a Symfony 6.0.9 website with EasyAdmin to handle the administration panel. I've got an entity ProfessionalExperience with some of its properties that are dates. Its CRUD controller for EasyAdmin looks like this : class…
0
votes
0 answers

Invalid upload directory for EasyAdmin ImageField once deployed on Heroku

I work on a Symfony 6.0.9 website with EasyAdmin to handle the administration panel. I've got an entity User and an entity MediaObject that can be an image for example. The User has a property $profilePicture which is a MediaObject. In EasyAdmin,…
0
votes
1 answer

How to build nested forms in Symfony

I'm using EasyAdmin to create a controller for an entity (Processes), which is related to another entity (Sections) (a one-to-many relationship) that has a relationship to another entity (Sub-Sections) (also one-to-many). In the "new" form of…
Candelo
  • 53
  • 7
0
votes
1 answer

Configuring AssociationField deafault property in EasyAdmin3

I have a question - is here a possibility to configure AssociationField to work with specific property. i.e: I have a Subscription Entity with a many-to-one relation to User, User has a __toString() method, that returns username, and it is used…
Jekyll
  • 3
  • 1
0
votes
2 answers

Options for VichFileType not taken into account in EasyAdmin 3 CRUD

I use Symfony 5.3, EasyAdmin 3.5, and Vich/Uploader-bundle 1.19 I want to manage uploads of PDF files into a EAsyAdmin CRUD controller. Here is the configuration of my fields for this CRUD Controller public function configureFields(string…
0
votes
3 answers

How to make a target_blank Menu link in EasyAdminBundle?

In EasyAdmin dashboard, i added a 'View website' link in the left menu: But i would like it to open a new browser window on click. And I am wondering how to add a target="_blank" attribute to it (or any other solution to get this result). For now i…
Edouard
  • 363
  • 3
  • 14
0
votes
1 answer

Easy Admin 3. How to use one CRUD Controller for to write to 2 entities

EasyAdmin 3 (Symfony) Is it possible to use one CRUD Controller for write to one table and write some data to another table?
Robokop
  • 31
  • 1
  • 5
0
votes
1 answer

EasyAdmin 3 Edit Photo

I have a commercial entity for portfolio management I use vichImage, but I don't understand why I cannot modify or delete an image. I can't change the photo without modifying another form field.
Juani08224
  • 41
  • 7
0
votes
1 answer

Symfony 4.4 - Easy Admin 3: Filtering AssociationField based on another Field value

i am new to easyAdmin v3, and i don't know how to filter AssociationField based on another one in the same form. this is the two fields: AssociationField::new('brand', 'brand')->hideOnIndex(), AssociationField::new('model',…
0
votes
1 answer

How to list entities in a ChoiceField with EasyAdmin?

I'm trying to set choices in a form using EasyAdmin Bundle. Below is the code inside the controller. I get this error message: Expected argument of type "App\Entity\Author or null", "int" given at property path "author". Indeed the ChoiceField…
Edouard
  • 363
  • 3
  • 14