Skip to content

Commit

Permalink
fix ensureIndex method call in model
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfe190 committed Mar 30, 2017
1 parent 308641d commit 5466ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model.php
Expand Up @@ -738,7 +738,7 @@ public static function ensure_index($keys, $options = array())
*/
public static function ensureIndex($keys, $options = array()){

$result = self::connection()->ensure_index(self::collectionName(), $keys, $options);
$result = self::connection()->ensureIndex(self::collectionName(), $keys, $options);

return $result;

Expand Down

0 comments on commit 5466ac7

Please sign in to comment.