src/Database/DatabaseCache.php
/**
	 * Checks if the cache has a relationship's results.
	 *
	 * @param Model $model
	 * @param string $relationshipName
	 * @return bool
	 */
Checks if the cache has a relationship's results.
@param Model $model
@param string $relationshipName
@return bool
Checks if the cache has a relationship ' s results . @param Model $model @param string $relationshipName @return bool
public function hasRelationship(Model $model, $relationshipName) {
		return
			$this->isCachingEnabled() &&
			array_key_exists(spl_object_hash($model) . ':relationship:' . $relationshipName, $this->relationships);
	}
public function hasRelationship ( Model $ model , $ relationshipName ) { return $ this -> isCachingEnabled ( ) && array_key_exists ( spl_object_hash ( $ model ) . ':relationship:' . $ relationshipName , $ this -> relationships ) ; }
Checks if the cache has a relationship's results.
Checks if the cache has a relationship ' s results .