Skip to content

Commit

Permalink
Dev: fix b160034 : qid is not unique and it's set in the model
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Jul 11, 2013
1 parent b160034 commit 4decaad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Question.php
Expand Up @@ -108,7 +108,7 @@ public function rules()
public function getMaxId()
{
$maxId = $this->dbConnection->createCommand()
->select('MAX(' . $this->primaryKey() . ')')
->select('MAX(qid)')
->from($this->tableName())
->queryScalar();
return $maxId;
Expand Down

0 comments on commit 4decaad

Please sign in to comment.