Questions tagged [easyadmin3]
83 questions
6
votes
1 answer
Redirect to NEW Action with prefilled values in EasyAdmin 3
I am currently trying to add a Clone action to my EmployeeCrudController.
The action should redirect to the Action::NEW view and have some prefilled values.
However I can't figure out how to prefill this form.
Here is where how I define my action…

EriCreator
- 117
- 1
- 13
5
votes
2 answers
Symfony - EasyAdmin - Add and remove functions are ignored from AssociationField
I use the last version of EasyAdmin and my add and remove functions are ignored when I submit the form:
Ambiance entity:
/**
* @ORM\OneToMany(targetEntity="Vehicule", mappedBy="ambiance")
*/
protected Collection $vehicules;
public function…

Valentin Harrang
- 1,081
- 2
- 17
- 34
3
votes
0 answers
Symfony. Easy admin 3. Field for json type with editable key and value
I need to view, create and edit json keys and values in easyadmin. Unfortunately, I can only add value. Is it possible to display and edit a key and its value?
My easy admin version : 3.5.16
My Crud Controller
class TestCrudController extends…

BartoszLauks
- 33
- 4
3
votes
0 answers
How do I show an array of js objects in symfony form?
Symfony 5.3 + EasyAdmin 3.3.2 + Doctrine
New approach of asking SO questions: short and simple (I got banned from asking questions before and I have no idea what I did wrong)
What I have:
I have an entity 'Device' which has a field…

Quatsch
- 361
- 1
- 8
- 29
3
votes
2 answers
Easy Admin 3 (Symfony 4) AssociationField in OneToOne relationship shows already associated entities
Using Symfony 4.4 with Easy Admin 3:
I've a OneToOne relationship
class Usuario
{
...
/**
* @ORM\OneToOne(targetEntity=Hora::class, inversedBy="usuario", cascade={"persist", "remove"})
*/
private $hora;
...
}
class Hora
{
...
…

circulosmeos
- 424
- 1
- 6
- 19
3
votes
1 answer
Symfony 5 easyadmin 3 Entity with relation ManyToOne - NOT saving on the "many" side
I have a very basic symfony 5 + easyadmin 3 app.
I created using the make:entity two entities: Posts and Categories
When I try to edit Category to assign Posts, posts are not saved in DB.
But If I add the category on the post edit is saves in…

Cedric
- 181
- 1
- 8
2
votes
1 answer
Symfony EasyAdminBundle 3 repeated field length
I am using EasyAmdinBundle 3 and I have the following CRUD Controller where the "plainPassword" field is a repeated field:
class UserCrudController extends AbstractCrudController
{
public static function getEntityFqcn(): string
{
…

Jayster
- 61
- 6
2
votes
1 answer
How to set a default value in AssociationField EasyAdmin 3
I'm starting with EasyAdmin v3.
I want to set a default value in easyAdmin.
In php/symfony i would provide:
$article = new Article::class;
$article->setAuthor($user)
Before creating the form to set the currentUser in my entity but with EA3 i don't…

loosemade
- 45
- 1
- 9
2
votes
0 answers
EasyAdmin 3 - Nested one to one form if association is null?
I found a part of my answer on StackOverflow (EasyAdmin 3 - CRUD with nested form) but I have an additional problem.
I have a Person entity with an User entity with a one to one relation between the both (0 or 1 user).
I would to manage the user…

Jiizen
- 119
- 1
- 11
2
votes
1 answer
How to create password input type in Symfony EasyAdmin 3
How do I create password input type in Symfony EasyAdmin 3 admin form.
In EasyAdmin 2 I could use - { property: ..., type: 'password' }
What is EasyAdmin 3 version of this?

Anastasia Sitnina
- 551
- 8
- 24
2
votes
1 answer
Set default view_timezone for all DateTimeField
In an EasyAdmin 3 / Symfony 5.2 backend, I have several *CrudController classes with datetime fields which are all configured like:
public function configureFields(string $pageName): iterable
{
return [
// ...
…

prossel
- 111
- 1
- 7
2
votes
0 answers
EasyAdmin3: method_exists(): Argument #1 ($object_or_class) must be of type object|string, array given
I've stumbled upon this error after trying to add configureFields to my CRUD controller, because the stock configuration left behind the some fields out of my User table.
I've followed the documentation, having extra care to match the fields except…

Ernuke
- 31
- 1
2
votes
1 answer
PDF document creation EasyAdmin symfony 5
I have this configuration which allows me to create a pdf document in the CRUD, is there a way to add this code in the CRUD easyAdmin or link the CRUD of my EasyAdmin documentos to the CRUD of symfony.
I have problems creating the document in the…

Juani08224
- 41
- 7
1
vote
0 answers
customize header_custom_menu block in easyadmin 3
I am using version 3 of easyadmin. I need to add a button to the left of the user menu, because it is the main action of my system and I want it to be available in any view.
I think I should override the "header_custom_menu" block in layout…

Jaime Roman
- 749
- 1
- 11
- 26
1
vote
0 answers
Custom form easyadmin 3 symfony
I need to create a custom form, I have created it with its twig template and I show it well, my problem is when submitting, I do not know what method it is sent to, I need to collect the data to go through it and save it in your table.
The main idea…

Rafa Alvarez-Ossorio Martin
- 23
- 1
- 4