Questions tagged as 'symfony3'

1
answer

How to show a form in Symfony from a query to 2 entities

I have the following code that works: //AdminController.php $orders_repo=$em->getRepository("BackendBundle:Orders"); $order=$orders_repo->getQuery()->getResult(); $form = $this->createForm(OrderType::class, $order); And in the O...
asked by 03.08.2017 / 03:17
1
answer

Get an entity from in eventSubscriber

I am using an eventSubscriber to dynamically load a field (Patient) in a form, of which in its preSubmit function I need to obtain in addition to the id the patient's ID. The id can be obtained directly, but the ID I need to bring the ent...
asked by 24.05.2017 / 09:56
1
answer

Bolt cms doubles my path when I call my css and my js

I am using Bolt CMS in one of my pages and when including my style files or my javascript there is a part of the link that is duplicated, then it does not find the files. In Bolt Symfony is used so I include them w...
asked by 30.11.2016 / 15:16
1
answer

Handling forms in symfony 3

I am making a website to make requests for premises in a university I have a table with reference to the teachers who make the requests for the premises and another regarding the requests (request_made) that has a field that refers to the tab...
asked by 27.02.2017 / 17:36
1
answer

Get a value from a multidimensional object PHP Symfony Doctrine

Hi, I'm a beginner and I want to get the value found in the following object specifically in: [id:AppBundle\Entity\BlogPost:private] => 1 and store it in a variable. The first part is the result of print_r and the second part...
asked by 17.11.2016 / 17:21
2
answers

defines / constants in a bundle

What would be the best place within a bundle to put defines, constants, variables that affect the operation of a bundle. For example, if a functionality of a bundle saves the images in / data / news / imgs / I want to have a route configured...
asked by 10.11.2016 / 18:54
1
answer

Symfony3 with NetBeans 8.0 is possible?

I currently use NetBeans to develop with Symfony2 and I want to update to Symfony3 . My Internet connection only allows me to download files of few megabytes, so at this moment I can not download any IDE. The most recent vers...
asked by 21.07.2016 / 18:19
0
answers

how do you put the class to the easyadmin form row in symfony 3?

I have a question about the easyadmin twig and the customization of the properties when a form is made with the builder. I have this in the easyadmin configurator: easy_admin: entities: Matriculasinconfirmar:...
asked by 27.12.2018 / 11:13
0
answers

How to treat a float field in symfony? [forms]

Good I have a field called price type float but at the time of creating a form in symfony I get this error: Unable to transform value for property path "precio": Expected a numeric. Any solution? Code: public funct...
asked by 11.12.2018 / 17:17
1
answer

How to deserialize symfony 3 a json to entity

I have the following entity: class Alumno { /** * @var int * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @var string * * @ORM\Col...
asked by 12.12.2018 / 18:09