Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Unique key name isn't correctly set - DDC-1603 #94

Merged
merged 1 commit into from about 2 years ago

2 participants

Thomas Tourlourat Benjamin Eberlei
Benjamin Eberlei beberlei merged commit 8e870a6 into from January 21, 2012
Benjamin Eberlei beberlei closed this January 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jan 16, 2012
Thomas Tourlourat Unique key name isn't correctly set - DDC-1603 16beed8
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/Doctrine/DBAL/Schema/Table.php
2  lib/Doctrine/DBAL/Schema/Table.php
@@ -167,7 +167,7 @@ public function addIndex(array $columnNames, $indexName = null)
167 167
      */
168 168
     public function addUniqueIndex(array $columnNames, $indexName = null)
169 169
     {
170  
-        if ($indexName == null) {
  170
+        if ($indexName === null) {
171 171
             $indexName = $this->_generateIdentifierName(
172 172
                 array_merge(array($this->getName()), $columnNames), "uniq", $this->_getMaxIdentifierLength()
173 173
             );
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.