Questions tagged as 'symfony-2'

1
answer

Doctrine Date Format

I would like to format a date with Doctrine, I often save a date as datetime in the database however I want to perform a grouped search per day without considering minutes and seconds. Does anyone know a cool way to do this?     
asked by 19.08.2014 / 19:10
1
answer

How to retrieve the contents of a rendered template in Symfony2 and store it in a String

I'm using Symfony2 , I'm still getting familiar with this framework. And while using my control I'm not sure how to get the output generated by it and play to a string. I need to play to a string to handle, as I'm using pjax and if the reques...
asked by 26.07.2014 / 19:18
1
answer

How to work with I18N in PHP and Symfony?

Is there an add-on for Symfony that allows working with i18n and .po and .mo files, or is it really necessary to implement a solution for this? Ideally, I could call the translation in both the twig and the Controller. If there is any or what th...
asked by 30.07.2014 / 23:09
1
answer

Relationship in doctrine

I have a problem that is analogous to the following situation: A car may or may not have a driver, ie a car may have a minimum of 0 and a maximum of 1 driver. A driver may or may not have a car, ie a driver can have a minimum of 0 and a ma...
asked by 17.07.2014 / 05:36
0
answers

'redirectToRoute' with query parameters - Symfony2

I have a /curso/{slug} route that does a 301 redirect to another route. This /curso/{slug} route can receive some parameters per query (example: /curso/{slug}?query=1234 ), but when redirect to the other route using return $this...
asked by 21.09.2018 / 16:11
1
answer

Update site Symfony2

Good morning. I'm modifying a site made in Symfony2 and I'm having difficulty editing content. If you shoot one of the .twig files from the server that matches the index or one of the parts of the site, it stops working, or does not load, as...
asked by 16.05.2017 / 16:27
1
answer

Twing and Controller on symfony

I have a form done in twing and I want to pass the values of this form to my database and for this I have to send to the controller, no?     
asked by 26.05.2017 / 13:07
0
answers

LexikJWTAuthenticationBundle Help

Someone can help me understand how to implement the LexikJWTAuthenticationBundle in symfony 3 I have already looked for everything and anything else I just do not understand the implementation logic. Thank you.     
asked by 22.08.2016 / 18:35
1
answer

Symfony Custom Field 2

How to write a custom form field in Symfony2 ? In this form you should see: A Dropdown field with the label City; Another field of type number next to the label port number.
asked by 13.08.2016 / 17:33
1
answer

Using Two Fields in a ManyToOne Relationship

The following relationship exists between two entities: class Clients { //... /** * Dealership id * * @ManyToOne(targetEntity="Dealerships", inversedBy="clients", fetch="EXTRA_LAZY") * @JoinColumn(name="dealership...
asked by 23.06.2016 / 16:54