Use null default value for ClassMetadataInfo slaveOkay #781

Merged
merged 8 commits into from Jan 21, 2014

Conversation

Projects
None yet
3 participants
Owner

jmikola commented Jan 21, 2014

Fixes #759 and supersedes #775.

@jmikola jmikola and 1 other commented on an outdated diff Jan 21, 2014

lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataInfo.php
*/
public function setSlaveOkay($slaveOkay)
{
- $this->slaveOkay = $slaveOkay;
+ $this->slaveOkay = (boolean) $slaveOkay;
@jmikola

jmikola Jan 21, 2014

Owner

Do we want to allow null here to reset to the default state?

jmikola merged commit 661a3b3 into master Jan 21, 2014

jmikola deleted the fix/gh759 branch Jan 21, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment