Questions tagged [easyadmin3]
83 questions
0
votes
1 answer
Restrict access to product status on user role
I a have two problems 1, I want to show order status base on user role, for instance if
Order table I have 3 status "pending", "received", "cancelled" with datatype "Enum". I have user role. on the same page I have uploaded an image using vichbundle…

Anim Damson
- 19
- 5
0
votes
1 answer
Problem getting value from a proxies object in Symfony 5 with easy admin 3
I have a ManyToMany relation. It return a collection type which I have in $collectionProductAutoclave. When I dump it, I get my objects, so no problem. However, some of them are proxies, and I can't manage to get value from it, only true boolean.
I…

Cephalopodius
- 117
- 1
- 10
0
votes
1 answer
EasyAdmin 3: How to display entities based on dql for CRUD index
I have an Entity named Page that can be a callToAction (boolean) and I would like to display the Page Entity with callToAction == false on one subMenu and the Page Entity with callToAction == true on another subMenu. I have a CRUD for the Page…

Akame
- 25
- 1
- 8
0
votes
1 answer
easyadmin crud controllers: adding value into related entity
I have question concerning easyadmin3. In my admin panel I have a productCrudController and one of the values I want to be able to set when creating a new product is the price.
For the price I have a separate table though which contains all my…

Julie Lenaerts
- 13
- 2
0
votes
1 answer
Use input-groups in easy-admin 3
I'm trying to use input-groups in easy-admin3, as much as I search the net, I can't find any ideas?
My question is if it is possible to add it by specifying the config from the configureFields method as the "setFormTypeOption" is used to specify…

Jaime Roman
- 749
- 1
- 11
- 26
0
votes
1 answer
Use an EntityType Form for Edit and New in EasyAdmin 3 and symfony 5
I'm learning symfony 5 with EasyAdmin 3.
I created a FormType for my entity, with label, attr, constraints (min, max). But to create or update my entity I use easyAdmin 3 and the constraints are not respected.
I would like to create a Form (from my…

Syl20
- 1
- 1
0
votes
1 answer
EasyAdmin 3 Symfony 5 CrudController AssociationField
I'm using EasyAmdin 3 with Symfony 5 and I have a OneToMany relation between Challenge and Encadrement. Defined In Challenge.php:
/**
* @ORM\OneToMany(targetEntity=Encadrement::class, mappedBy="challengePartner")
*/
private $bornes;
I made a…

Akame
- 25
- 1
- 8
0
votes
2 answers
EasyAdminBundle NumberField is rounding latitude and longitude decimals
I am using EasyAdminBundle in a PHP Symfony project. In the admin, I have a problem displaying the NumberFields latitude and longitude in the Edit and Detail view, because EasyAdmin does not display the values stored in the database, these values…

Atalaia
- 45
- 1
- 6
0
votes
1 answer
Call to a member function all() on Easyadmin 3 UserProfile view
I need to create a view so that the user can edit his profile, but it cannot be the same edit view because there are fields that only the user can access in session, such as the password and no other user, not even a admin can change the password,…

Jaime Roman
- 749
- 1
- 11
- 26
0
votes
0 answers
EasyAdmin 3 Can't diffuse decimal with numberfield
I'm working with symfony5 and easyadmin3.
There is no error displayed.
Here is the trouble :
I got a method get() in my entity
'''
/**
* @ORM\Column(type="integer")
*/
private $montageCharge;
////
public function…

Cephalopodius
- 117
- 1
- 10
0
votes
1 answer
EasyAdmin: Specifying a page in CrudController
How can I give my Crud controller a specific template?
For example, I have the user entity linked to its controller UserCrudController.
I want the creation page to be another page than the one provided by EasyAdmin by default…

nemoxi
- 530
- 1
- 7
- 23
0
votes
1 answer
Functional test EasyAdmin 3 backend
I would like to run functional tests on an EasyAdmin 3 backend.
Basically, I want to make sure regular users cannot access pages, view fields or view/run actions they are not allowed to do.
What would be the best way to go ? Is there any useful…

prossel
- 111
- 1
- 7
0
votes
1 answer
Problem with the user on my achievements on EasyAdmin3 and symfony5
This issue is on Symfony 5. I create the admin side of my site with an EasyAdmin v3 bundle.
My problem occurs when I try to add a realization and it gives me the following error message.
https://i.stack.imgur.com/RXpLr.png
It says that my user…

PierreD
- 13
- 4
0
votes
1 answer
Symfony 5 / EasyAdmin 3 / VichUploader for a multi files upload at once, in one field
Bundle version : vich/uploader-bundle 1.17.0 (checked with composer
show -i)
Symfony version : 5.2.5
PHP version : 8.0.2
I had a perfectly working multi files upload. Upload one file at a time with one "browse" button.
It's basically a Package…

Cedric
- 181
- 1
- 8
0
votes
2 answers
EasyAdmin3 static dql filters
I need to filter the results of an index page by default so that it only returns entities that meet a certain condition, without the user actively filtering anything. EasyAdminBundle2 documentation seems to have an answer with static…

CHE6yp
- 86
- 7