diff --git a/src/ORM/Query.php b/src/ORM/Query.php index d3d450f03a0..d77b044341c 100644 --- a/src/ORM/Query.php +++ b/src/ORM/Query.php @@ -383,7 +383,7 @@ public function contain($associations = null, $override = false) } if ($associations === null) { - return $this->getContain(); + return $this->getEagerLoader()->contain(); } $result = $loader->contain($associations); @@ -405,16 +405,6 @@ public function clearContain() return $this; } - /** - * Gets the contained associations - * - * @return array - */ - public function getContain() - { - return $this->getEagerLoader()->contain(); - } - /** * Used to recursively add contained association column types to * the query.