Top "Dbal" questions

Database Abstraction Layer for Doctrine ORM (PHP)

Symfony 2 SQLSTATE[HY000] [2002] Connection refused Error

I get an error like database operations using Symfony2. SQLSTATE[HY000] [2002] Connection refused parameters.yml parameters: database_driver: pdo_mysql …

symfony pdo doctrine dbal
Doctrine DBAL 2: fetchAll() unnecessary array dimensions

In doctrine DBAL2 when I execute a query like this: <?php $connection = $this->getDatabaseConnection(); $sql = "SELECT page_url …

php pdo doctrine-orm dbal
Doctrine DBAL - WHERE IN array with additional parameter

Using the example docs, I was able to get a query like this to work. SELECT f.foo, b.bar …

php mysql doctrine-orm dbal
What is the difference between Database Abstraction Layer & Data Access Layer?

I am actually stuck in 3-tier structure. I surfed the internet and found two terminologies "Database Abstraction Layer" & "Data …

data-access-layer 3-tier dbal doctrine-dbal
Doctrine DBAL setParameter() with array value

I'm using doctrine DBAL and have some problem with SQL query as result of a queryBuilder. $builder = $this->getConnection()…

php mysql symfony doctrine dbal
Symfony / Doctrine UnitTests with SQLite memory DB

I'm still working on PHP unit tests for testing my symfony2 controllers. My test classes are derivations of WebTestCase and …

doctrine-orm phpunit webtest dbal
symfony 4: An exception occurred in driver: could not find driver

Working with Doctrine DBAL in Symfony 4 with the following conofiguration (doctrine.yaml): dbal: # configure these for your database server driver: …

symfony doctrine symfony4 dbal
PostgreSQL: Not null violation: 7 ERROR: null value in column "id" violates not-null constraint

doctrine /** * @var integer $id * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * @var string $…

postgresql doctrine dbal
Deleting multiple rows at once with Doctrine DBAL, is it possible?

First of all, I just want to mention that this is not an "issue" at all. Deleting with Doctrine DBAL …

php doctrine-orm silex dbal
Symfony : how to set SSL parameters in Doctrine DBAL configuration (YAML)?

I'd like to add my SSL cert and key files to Doctrine DBAL configuration but I don't see how to …

symfony pdo doctrine-orm yaml dbal