Skip to content

Commit

Permalink
Removing getContain() as requested by Mark Story
Browse files Browse the repository at this point in the history
  • Loading branch information
burzum committed Apr 17, 2017
1 parent 09f56ef commit 9ae1683
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/ORM/Query.php
Expand Up @@ -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);
Expand All @@ -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.
Expand Down

0 comments on commit 9ae1683

Please sign in to comment.