src/Relations/HasForeign.php
protected function fetch_results_for_eager_load( $primary_keys ) {

		if ( ! $primary_keys ) {
			return new Collection( array(), false, $this->saver );
		}

		$query = $this->make_query_object( true );
		$query->where( $this->related_primary_key_column, true, $primary_keys );

		return $query->results( $this->saver );
	}
protected function fetch_results_for_eager_load( $primary_keys ) {

		if ( ! $primary_keys ) {
			return new Collection( array(), false, $this->saver );
		}

		$query = $this->make_query_object( true );
		$query->where( $this->related_primary_key_column, true, $primary_keys );

		return $query->results( $this->saver );
	}
Fetch results for an eager loading query.

@since 2.0

@param array $primary_keys

@return \Doctrine\Common\Collections\Collection|\IronBound\DB\Collection