Guide me suggestions to have a drop down with data's fetched from relational database in symfony 4
Referral link:
Guide me suggestions to have a drop down with data's fetched from relational database in symfony 4
Referral link:
In Controller
Add this line
$category = $this->getDoctrine() ->getRepository(Category::class) ->findAll();
In Twig