Questions tagged as 'symfony3'

0
answers

Synfony 3.3 retora null when selecting with Choicetype in Form

I'm having a little problem with Synfony 3.3, since I'm creating a form with choicetype, and I pass an array to it. When selecting and submitting, I try to create an object with the data of the form, but in my case it is returning null of the fi...
asked by 27.01.2018 / 21:01
0
answers

fosrestbundle and jmsserializerbundle give me back a very long json

Hi, I am using symfony 3.3.15 to build a project that includes an API, and I am using fosrestbundle and jmsserializerbundle in which I have two entities, one ad and another category related to one and many, and when I consult the api for the ads...
asked by 23.01.2018 / 01:59
1
answer

Symfony3 Form to change the password Error @SecurityAssert \ UserPassword

I have a problem with the typical form to change the password in which I first put you to enter your current password. The theory is very simple and it is explained in the symfony doc but it gives me an error like the current password is inco...
asked by 22.01.2018 / 13:13
0
answers

Problem so that a user does not exit in OneToMany query if a condition occurs

I have a problem with an sql query that I am doing using doctrine in symfony I have two related tables, one of users and one of actions performed by the user, these tables are related from one to many, a user can do many actions. I am trying...
asked by 21.01.2018 / 21:33
2
answers

Prevent URL access to the "app" directory in Symfony 3.3

I have been with Symfony for a short time and I am developing an application. Everything works perfectly but I realized that I can access the configuration files located in "app / config" just by putting the path in the browser (for example,...
asked by 11.01.2018 / 12:41
0
answers

Apache2 + Symfony in Ubuntu

Good I attach the errors and others. So it seems that I do not interpret the php code well and I do not know why.     
asked by 04.12.2017 / 10:43
1
answer

subConsulta select transformed to DQL

I am using MySQL and I have this select : Select TOP 15 Item DescriptionforSales , (select top 1 Retail from Pricelist where Pricelist.peachitemid = products.peachitemid ) as Retail " From products where imagen=1 and active=1...
asked by 26.11.2017 / 23:17
1
answer

Symfony make a call to a controller (REST API)

Good, I have an environment with symfony3 installed and my intention is to make an api rest, use as web server NGINX and as a proxy reverse apache, that is to say in port 80 I have NGINX and in port 8080 Apache. I have developed a test projec...
asked by 17.11.2017 / 13:27
1
answer

What actions should be implemented to improve security in Symfony?

I have developed an application in Symfony, with which I have no functional problems, more if in security according to some suggestions of infrastructure coordination. The point is that from the production server you can access the base direc...
asked by 10.11.2017 / 18:46
1
answer

Dinamic Roles in Symfony2

Good I have that piece of code, I have the class "Users" and the class "Roles", in this fragment the getRole () method, perfectly gets the user name of the class users, at this point return 'ROLE_' strtoupper ($ this-> user-> getUsername ());...
asked by 14.10.2017 / 07:42