Added fetchColumn, it was missing

This commit is contained in:
Thomas Gelf 2013-08-20 23:13:47 +02:00 committed by Eric Lippmann
parent 103ed266c5
commit 0f48d0e2d6
1 changed files with 5 additions and 0 deletions

View File

@ -104,6 +104,11 @@ class Query extends AbstractQuery
return $this->db->fetchRow($this->getSelectQuery());
}
public function fetchColumn()
{
return $this->db->fetchCol($this->getSelectQuery());
}
public function fetchOne()
{
return $this->db->fetchOne($this->getSelectQuery());