Questions tagged as 'symfony'

0
answers

I have a project in symfony but it does not work in my directory, only in root

I have configured it in .htaccess, I suppose it must be this that makes it difficult for me and it throws the 500 error. I hope you can help me, I am new to this topic, thank you. Note: I am using the godaddy host service. # Use the front c...
asked by 15.11.2017 / 02:42
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
1
answer

Problem with EasyAdminBundle and VichUploaderBundle

I'm using EasyAdminBundle for entity management and to upload images I want to use VichUploaderBundle . It shows me the following error:    Error: Expected argument of type "", "Symfony \ Component \ HttpFoundation \ File \ Up...
asked by 17.08.2017 / 02:29
1
answer

show in twig the result of a JOIN query in Symfony

I have 2 tables which are not related by ORM so I do the JOIN in the following way: $dql="Select u, o from BackendBundle:Orders o JOIN BackendBundle:Users u WITH o.userid=u.id"; $query=$em->createQuery($dql);...
asked by 01.08.2017 / 19:39
2
answers

Error to edit a record in Symfony

I have a relationship between 2 tables Orders and Users and the information is displayed correctly. Mapping Users: BackendBundle\Entity\Users: type: entity table: users id: id: type: integer nullable: false...
asked by 02.08.2017 / 19:24
1
answer

JOIN error with Symfony

I have a relationship between 2 Orders and Users tables from the field user_id and id respectively. I make this query: $dql="SELECT u, o FROM BackendBundle:Orders o JOIN o.users u"; $query=$em->createQuery($dql)...
asked by 02.08.2017 / 05:30