From 8cf39663fe11310a5f951d9698f7a3fafb9b57ba Mon Sep 17 00:00:00 2001 From: mscherer Date: Mon, 14 Nov 2016 13:51:27 +0100 Subject: [PATCH] Fix tests. --- src/ORM/EagerLoadable.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/ORM/EagerLoadable.php b/src/ORM/EagerLoadable.php index ba0aa03d558..6303b62ec86 100644 --- a/src/ORM/EagerLoadable.php +++ b/src/ORM/EagerLoadable.php @@ -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. @@ -232,7 +231,7 @@ public function canBeJoined($possible = null) $this->setCanBeJoined($possible); } - return $this->getCanBeJoined(); + return $this->_canBeJoined; } /**