Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
DOCTRINE 1.2: Returns a single value
<?php
$q = Doctrine_Query::create()
->select('a.title as title')
->from('Article a')
->where('a.id = ?', $this->getId());
->fetchOne()->title;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment