Skip to content

Commit

Permalink
changed field name in ORM specific AnswerManager method doCountByFields
Browse files Browse the repository at this point in the history
  • Loading branch information
teo-sk committed Aug 13, 2012
1 parent 7f49f87 commit fa9d568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Entity/AnswerManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function doSave(array $answers)
public function doCountByField(FieldInterface $field)
{
$query = $this->entityManager->createQuery(
sprintf("SELECT COUNT(v.id) FROM %s v WHERE v.answer = '%s'", $this->class, $field->getId())
sprintf("SELECT COUNT(v.id) FROM %s v WHERE v.value = '%s'", $this->class, $field->getId())
);

return $query->getSingleScalarResult();
Expand Down

0 comments on commit fa9d568

Please sign in to comment.