I'm not sure what version of Doctrine j0k was using. It provided some answers, but I did have trouble finding Doctrine_Query and Doctrine_Core classes. I am using Doctrine 2.3.4. The following worked for me.
public static function getAllEventIDs($em) { return parent::getAllFromColumn('\path\to\Entity\entityName', 'id', $em);}public static function getAllFromColumn($tableName, $columnName, $em) { $q = $em->createQueryBuilder('t') ->select("t.$columnName") ->from($tableName, 't'); $q = $q->getQuery(); $result = $q->getResult(\Doctrine\ORM\Query::HYDRATE_SCALAR); return $result;}
This did however return a array of arrays. ie, the id of the first event was is
$result[0]['id'];