Questions tagged as 'symfony2'

1
answer

validate with jquery.validate a form with dynamic elements divided into tabs

The problem I have is the following: In twig from the form-wizard of the metronic template I dynamically create both the tabs and the elements within them. This first part goes well, the problem is in the validation. All the fields are obliga...
asked by 26.05.2016 / 21:28
5
answers

Disable / Enable according to a JAVASCRIPT data

I have a problem with this function, I do not really understand why it does not work for me, it consists of the following. I have a .twig done in symfony. In it I have a list of details of a particular book. What I want to do through Javascri...
asked by 26.05.2018 / 13:30
2
answers

how to link symfony to a postgresql database

I have a project in symfony, but I need it to be with a database in postgresql, but when I try it it gives me the following error I do not have the xampp, in the machine I only have php and I work directly with the server that generates th...
asked by 03.05.2018 / 15:27
0
answers

Fail to calculate input data when editing a page, it only works when creating

I am using symfony 2.8 with php7.0 and I have a form that calculates a data with javascript. The detail is that it works well when creating a new record but if I am going to edit a record already saved the function of calculating does not work h...
asked by 05.12.2017 / 04:05
2
answers

Roles in symfony

I have several roles set in Symfony hierarchically ROLE_1: [ROLE_2] ROLE_2: [ROLE_3, ROLE_4] ROLE_3: [ROLE_4] ROLE_4: [ROLE_4] in a twig I need to execute an action strictly for t...
asked by 16.06.2017 / 17:07
0
answers

error 500 setTemplate symfony 1.4

I'm maintaining an app made in symfony 1.4, I was correcting several things, including: I have a local login that is ok, but in prod I get error 500, the url is register / sendContrast Working on localhost, I get a message if it was suc...
asked by 03.04.2017 / 17:27
0
answers

Capture Entity serialized in JSON with symfony form

I am using fos_rest in symfony 2.8. I have an Angular client that sends a serialized entity in JSON in order to persist it in the database. It has three related entities. Ex: {"auto": {"usuario":{"id":1}, "modelo":{"id":1},...
asked by 14.12.2016 / 21:40
2
answers

Doctrine 2.5 key composite error mapping

Good afternoon I'm doing a project in Symfony 3 in which I use Doctrine 2.5 . In this project I have the following tables: CREATE TABLE companies ( id_company INT NOT NULL AUTO_INCREMENT, id_user INT NOT NULL UNIQUE, name VAR...
asked by 09.11.2016 / 12:09
1
answer

how to put a custom id to the helper form_start

I'm doing a project in Symfony 2.6 and I need to put the value of id to helper form_start , which only shows the default name . >     
asked by 28.08.2016 / 20:55
1
answer

Error loading session (db user) security symfony

I come to explain my problem to you because I do not know what to do anymore ... I've been reading Symfony's official documentation for almost two weeks as others that are not official to try to make a user session system with Symfony . I d...
asked by 11.09.2016 / 12:02