Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix tests.
  • Loading branch information
dereuromark committed Nov 15, 2016
1 parent e7510d8 commit 8cf3966
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/ORM/EagerLoadable.php
Expand Up @@ -211,16 +211,15 @@ public function propertyPath()
*/
public function setCanBeJoined($possible)
{
$this->_canBeJoined = $possible;
$this->_canBeJoined = (bool)$possible;

return $this;
}

/**
* Sets whether or not this level can be fetched using a join.
*
* If called with no arguments it returns the current value.
* Gets whether or not this level can be fetched using a join.
*
* If called with arguments it sets the value.
* As of 3.4.0 the setter part is deprecated, use setCanBeJoined() instead.
*
* @param bool|null $possible The value to set.
Expand All @@ -232,7 +231,7 @@ public function canBeJoined($possible = null)
$this->setCanBeJoined($possible);
}

return $this->getCanBeJoined();
return $this->_canBeJoined;
}

/**
Expand Down

0 comments on commit 8cf3966

Please sign in to comment.