I have the following migration: Schema::create('items', function(Blueprint $table) { $table->uuid('id')->primary(); // more columns ... ...
I have the following migration: Schema::create('items', function(Blueprint $table) { $table->uuid('id')->primary(); // more columns ... ...
I want to configure the Doctrine bundle to have a DBAL connection. For some reason the configuration needs a bit of logic to retrieve. I tried to use ...
I created a query with query builder like this: $qb = $em->createQueryBuilder(); $qb->select(['u.id', 'u.name']) ->from(User::class, 'u') ...
Since the release of Doctrine DBAL 2.13 deprecations have been added as stated here. While the old way of fetching results is something like this: ...
Doctrine\DBAL\Connection::ping() is marked as @deprecated I found this commit that introduced it but no info about successor for this method was giv ...
I want to using the query in my controller . For this I use the querybuilder like this: I tryed to add the ORDERBY in this way: But this don' ...
On some existing code I have the following statement (after a rather long query building exercise): return $statement->fetchAll( DBAL\FetchMod ...
I am working with symfony 5.1, doctrine-bundle 2.1.2 and doctrine-migrations-bundle 2.2. I am NOT working with ORM and define my own Schemas. To add E ...
I want to change some table columns in Laravel from nullable to having a default value. I installed doctrine/dbal, and created a new migration with th ...
I'm using Laravel 6.6.0 and Doctrine/Dbal 2.10. I need to update a migration, and have followed the info in the docs. I have a small unsigned non-au ...
I'm trying to execute a raw query with a prepared statement in PDO-like style using unquoted params (cases 1, 1A), anyway it throws an exception: ...
This is a really obvious data problem, but I can't find a simple solution anywhere. Using TYPO3 QueryBuilder, how do you select the most recent entr ...
I tried to make a POS system in migration relationship. I used Doctrine/DBAL before running migrate for making the relationship. After installing Doct ...
In my application I save data with doctrine to an mysql database. for me it is totally sufficient to save the date and not also the time therefore I h ...
I have the following custom query. I know its a simple one, so it can also be used as a DQL, but I have more complex ones too. But I want to know the ...
Raw query: Querybuilder Problem: How to collect concat with regexp not as function? Tried using literal() function but it is not possible to cr ...
I reverse engineered my database with symfony2 and doctrine with commands : But my field was mapped as boolean instead of tinyint(2). Why it is ma ...
I am actually stuck in 3-tier structure. I surfed the internet and found two terminologies "Database Abstraction Layer" & "Data Access Layer". Wh ...