Top "Doctrine-1.2" questions

Doctrine 1.2 is a PHP (5.2.3+) ORM.

How to query NOT NULL with Doctrine?

I have table Test: Test: id | name 1 | aaa 2 | 3 | ccc 4 | aaa 5 | 6 | ddd I want result where name is NOT NULL: aaa …

php symfony1 doctrine symfony-1.4 doctrine-1.2
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
Select One column Doctrine DQL

I need a simple column for a table. By example a table "project", with column id, name and year. If …

php doctrine dql doctrine-1.2
doctrine findby magic null value

I'm wondering if there is anyway to use doctrine's magic method to look for null values. For instance: Doctrine::getTable(…

php doctrine doctrine-1.2 findby
How do I find out which version of Doctrine I am running?

Have been using it for a while with CodeIgniter and I can't remember if I installed v2 or just copied …

codeigniter doctrine doctrine-orm doctrine-1.2
Iterate Doctrine Collection ordered by some field

I need something like this: $products = Products::getTable()->find(274); foreach ($products->Categories->orderBy('title') as $category) { …

php sorting collections doctrine doctrine-1.2
MYSQL incorrect DATETIME format

I have an app with Doctrine 1 and I generate update_datetime fields for objects via new Zend_Date->getIso(). …

php mysql zend-framework doctrine doctrine-1.2
How to get result information when updating mysql table with Doctrine ORM in symfony 1.4

I am developing with symfony 1.4 and using Doctrine ORM. After building schema and models i've got some classes for work …

php orm doctrine symfony-1.4 doctrine-1.2
Doctrine query : confusing addWhere, andWhere, orWhere

I have a query : $q->andWhere($q->getRootAlias().'.is_published = ?', 1); $q->andWhere($q->getRootAlias().…

sql doctrine doctrine-1.2
Check for table existence before dropping?

I'm trying to check for the existence of a table before dropping it. I've read through the API documentation for …

doctrine doctrine-1.2