python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
How to autowire an entity into a service?
I have an abstract class called AbstractMediaService and a some specific implementations of this abstract class:
abstract class AbstractMediaService
{
private $em;
private $media;
public f...
akio
Votes: 0
Answers: 1
SYMFONY, API PLATFORM how to add edit and show links to the serialized object
I'm working with SYMFONY and API PLATFORM to create REST API.
I have a Project Entity as an API Resource :
class Project
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type=&qu...

Khaled Boussoffara
Votes: 0
Answers: 1
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\XY...

Tim
Votes: 0
Answers: 1
How to use the AssociationField with a ManyToMany relationship in EasyAdmin 4?
I created an Artist Entity and an User Entity in Symfony 6. Both entities have a ManyToMany relationship, so a join table was created.
User Entity
#[ORM\OneToMany(mappedBy: 'author', targetEntity:...
LudoPilot
Votes: 0
Answers: 1