Questions tagged as 'symfony'

1
answer

Problem with users in the BD

I have a basic Symfony 3.3 structure (version 3.4 does not work and 4 is very different) with two entities: User , for users and Role for the roles. Several users may have a role (ManyToOne), and a role may be assigned to several users (OneTo...
asked by 06.04.2018 / 20:01
1
answer

I can not logout in Symfony 3

I have Symfony 3 configured for the most basic access (the http_basic). In security.yml I have the following, in the firewall: main: security: true anonymous: ~ #De momento, la entrada es por http_basic....
asked by 24.03.2018 / 12:18
1
answer

Redirecting from Symfony routing

I have a routing in my Symfony project that points to different controllers, in different routes, like this: # GLOBAL DE LA APLICACIÓN entry_point: path: / defaults: { _controller: AppBundle:Default:index} options: expose: true # PA...
asked by 15.03.2018 / 16:32
1
answer

Login Failed Symfony Angular

When I try to login from the browser, it returns the error message "login failed" (which is thrown from within the JwtAuth service), the strange thing is that if I do it from postman with the same credentials, I logged in correctly returning the...
asked by 05.04.2018 / 12:45
2
answers

Symfony, return a Json with all the fields

I have an entity named "Courses" that has a series of attributes and one of them is "shop" which is an onetomany relation with a Entity "Shop" In the controller I have done an action that what it does is to return a JSON by applying a series...
asked by 05.02.2018 / 17:23
1
answer

Docine error: Access denied for user in Symfony-4

I'm following the tutorial link , to start with Flex and they are Symfony. The case is that when executing: ./bin/console doctrine:database:create I returned: '' '  [Doctrine \ DBAL \ Exception \ ConnectionException]   An exception o...
asked by 26.10.2017 / 13:18
1
answer

The file "test.jpeg" was not uploaded due to unknown error

I have configured the uploading of images correctly in the admin and followed this documentation: link Now in another part of the system that does not use EasyAdminBundle I need to upload images, in the controller I have this: public func...
asked by 18.10.2017 / 00:47
1
answer

Ajax with jquery in Symfony

I have the following code: On the route I defined it like this: ajaxordersku: path: /ajaxordersku defaults: { _controller: AppBundle:Admin:orderskufororderid } methods: [GET] In the controller that you belong to the path defi...
asked by 05.08.2017 / 00:16
1
answer

How to show a form in Symfony from a query to 2 entities

I have the following code that works: //AdminController.php $orders_repo=$em->getRepository("BackendBundle:Orders"); $order=$orders_repo->getQuery()->getResult(); $form = $this->createForm(OrderType::class, $order); And in the O...
asked by 03.08.2017 / 03:17
1
answer

Symfony3 with NetBeans 8.0 is possible?

I currently use NetBeans to develop with Symfony2 and I want to update to Symfony3 . My Internet connection only allows me to download files of few megabytes, so at this moment I can not download any IDE. The most recent vers...
asked by 21.07.2016 / 18:19