Top "Doctrine" questions

The Doctrine Project is a collection of open source libraries and tools for dealing with database abstraction and Object-Relational Mapping written in PHP.

Doctrine undefined function apc_fetch

I'm using this tutorial, which gives a detail explanation about how to set up CodeIgniter and Doctrine. I'm using CodeIgniter 2.1.0 …

codeigniter doctrine doctrine-orm doctrine-odm
How to do a LIKE database query in Symfony2

This should be simple but I can't find a working example. Here's a controller method that throws the error "Invalid …

symfony doctrine-orm doctrine query-builder dql
Doctrine: Counting an entity's items with a condition

How can I count an entity's items with a condition in Doctrine? For example, I realize that I can use: $…

php doctrine-orm doctrine
Complex WHERE clauses using the PHP Doctrine ORM

I'm using the PHP Doctrine ORM to build my queries. However, I can't quite seem to figure how to write …

php mysql doctrine dql
how to convert Doctrine object into json

I am using Doctrine 1.2, how could I get the query object into json / array format? $user = Doctrine_Query::create() -&…

php json doctrine doctrine-1.2
Using column value as array index in doctrine

I am using doctrine 2.1 in order to create a model for settings table: id | arg | value | category 1 | name | foo | general_…

php multidimensional-array doctrine-orm doctrine
Cannot autowire service: Argument references class but no such service exists

I'm upgrading a project from Symfony 3 to Symfony 4 (https://github.com/symfony/symfony/blob/master/UPGRADE-4.0.md) and I have …

php symfony doctrine symfony4
Selecting from subquery in DQL

I would like to perform a SELECT from the results of a subquery in DQL. The equivalent of doing the …

doctrine symfony dql
Doctrine_Core::getTable()->findAll() how to specify order?

When using a Doctrine_Table object, is it possible to specify the order of the returned collection when using findAll() …

php symfony1 doctrine
Converting MySQL to Doctrine Query Builder. Issues with IF and CONCAT. Or another approach for subqueries on select

I have a table for my categories, each category have and id, name and parent_id. Select IF(a.parent_…

mysql symfony doctrine doctrine-orm