Questions tagged as 'symfony4'

0
answers

Create database in Symfony4

I'm trying to create a database in Symfony 4 with php bin/console doc:data:create but I get this error: In AbstractMySQLDriver.php line 93: An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user 'db_user'@'loc...
asked by 22.12.2018 / 20:39
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

Why does Sonata Bundle give me an error when trying to load a list of more than 1000 records?

I am using the Sonata bundle in symfony 4.1 to manage my entities, the problem is that when I try to enter the administration of an entity that has about 1300 records it sends me this error    Error: Maximum execution time of 30 seconds excee...
asked by 04.12.2018 / 15:49
0
answers

erroneous behavior of the knp paginator bundle

I have two queries dql which I am paging with the knp paginator bundle. One for a generic search and another for the advanced search. public function returnGenericSearchData(Request $request) { $em = $this->em; $container = $this-&g...
asked by 13.11.2018 / 16:25
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
0
answers

Liipimaginebundle in symfony project 4

I have the Liipimaginebundle bundle installed in a Symfony 4 project and after trying a thousand combinations in the configuration file: config/packages/liip_imagine.yaml I have not been able to make the image display work. I have read many...
asked by 31.10.2018 / 00:00
0
answers

Parameterize different connections to Mongodb from sonataadmin in Symfony4

I require that in each option of the menu of sonataadmin be able to define the connection to use "because I am using several databases", and tried to configure it from the services file or in the class of the CRUD, but not found How to do it, ca...
asked by 28.09.2018 / 01:07
1
answer

Template media Sonata Media Bundle - Symfony 4

Hello, how about I come to you since I am stuck with Sonata Media Bundle with Symfony 4. I have already configured everything according to the documentation and it works correctly, but the template that is used to render the "Add Image" butto...
asked by 18.06.2018 / 01:53
0
answers

MongoDB createAggregationBuilder with Simultaneous operations

public function inventario(\App\Document\Tecnico $tecnico, $value) { $builder = $this->createAggregationBuilder(); $builder ->hydrate(\App\Document\Inventario::class) ->match() ->field('tecnico')...
asked by 07.06.2018 / 00:13
1
answer

How to call a php file from a Symfony4 entity?

I would like to use this library in a symfony4 project: link The fact is that I have used this library on other occasions, in small pure php projects, without any framework and including it was as simple as using this: require 'libs/simpl...
asked by 06.03.2018 / 12:19