Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

Commit

Permalink
Fix LoggableDatabase::command() signature.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwage committed Jun 15, 2012
1 parent 53a79bb commit 1a8380f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Doctrine/MongoDB/LoggableDatabase.php
Expand Up @@ -80,14 +80,15 @@ public function authenticate($username, $password)
return parent::authenticate($username, $password);
}

public function command(array $data)
public function command(array $data, array $options = array())
{
$this->log(array(
'command' => true,
'data' => $data
'data' => $data,
'options' => $options
));

return parent::command($data);
return parent::command($data, $options);
}

public function createCollection($name, $capped = false, $size = 0, $max = 0)
Expand Down

1 comment on commit 1a8380f

@jmikola
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My mistake. I was searching ODM for the class extending Database and missed searching this repository :\

Please sign in to comment.