Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cast slaveOkay to boolean in ClassMetadataInfo setter

  • Loading branch information...
commit e7ac9de19b74f1b486c15ee808b5e6ff9df58e05 1 parent adbe099
@jmikola jmikola authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataInfo.php
View
4 lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataInfo.php
@@ -699,11 +699,11 @@ public function setDiscriminatorValue($value)
/**
* Sets whether or not reads for this class are okay to read from a slave.
*
- * @param bool $slaveOkay
+ * @param boolean $slaveOkay
*/
public function setSlaveOkay($slaveOkay)
{
- $this->slaveOkay = $slaveOkay;
+ $this->slaveOkay = (boolean) $slaveOkay;
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.