Questions tagged as 'symfony'

0
answers

Symfony 3.4, use parameters.yml in controller

I want to read a record of parameters.yml in a controller. I do not know why but with Swift Mailer it works for me, but not in any other way. This I am trying: //Mi Controller class ExampleController extends Controller { function so...
asked by 02.01.2019 / 20:36
0
answers

index.php what route do you redirect to?

Hi, I am studying the symfony-demo project and I am faced with a question: This project is configured so that the index redirects to the route / is imagined to be taken out of the locale. The fact is that I want to change the route to which the...
asked by 27.12.2018 / 18:55
0
answers

Doctrine list indexes associated with entities

Is there a way to obtain the list of indices by command line, the list of indices associated with the relationships between doctrine tables? I have a hexadesimal index that I can not find, if I use the Oracle database it does not appear among th...
asked by 20.12.2018 / 14:11
1
answer

driver to show contents of the database in symfony3? [closed]

Hello I have saved in the database, complete html codes, I need a controller to show the result of the code in a new page.     
asked by 11.12.2018 / 14:07
1
answer

Data entry in database with symfony

Excuse me, I have a question about how to insert data in two tables with symfony. The fact is that I have a user table and a person table with a 1 to 1 ratio so to insert a user we need a person. someone who can guide me on the insertion o...
asked by 18.12.2018 / 12:16
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

Symfony 3 use service within another service

I appeal to the knowledge of the community to resolve a doubt about the use of services, about whether it is feasible to use the functionalities of one service within another. I have two two defined services whose nomeclature is as follows:...
asked by 10.11.2018 / 16:17
0
answers

How do I perform a dql query to join 4 tables

I am using the knp paginator bundle in my system in Symfony 4, for which I need to perform queries using dql. I have 5 entities, House, Package, Day, Actividade and Image. The houses have a direct relationship with the images. Each House has...
asked by 07.11.2018 / 19:33
1
answer

How to have a custom repository not associated with an entity in Symfony

I have a file DefaultRepository to place all the general queries there. Would it be possible to have a custom repository not associated with an entity in Symfony ? I would like to put in it all the queries that do not fit well in...
asked by 07.11.2018 / 17:26
1
answer

CORS in Symfony 3 and Angular js

I made an Api with symfony, in which I define all the necessary headers. From Angular it is from where I consume the symfony api, the connection with my Api since angular is normal in all the requests, at no time I get an error by the CORS. The...
asked by 02.11.2018 / 16:28