src/Database/DatabaseCache.php
/**
	 * Clears a relationship's results from the cache.
	 *
	 * @param Model $model
	 * @param string $relationshipName
	 * @return void
	 */
Clears a relationship's results from the cache.
@param Model $model
@param string $relationshipName
@return void
Clears a relationship ' s results from the cache . @param Model $model @param string $relationshipName @return void
public function clearRelationship(Model $model, $relationshipName) {
		$index = spl_object_hash($model) . ':relationship:' . $relationshipName;
		if (array_key_exists($index, $this->relationships)) {
			unset($this->relationships[$index]);
		}
	}
public function clearRelationship ( Model $ model , $ relationshipName ) { $ index = spl_object_hash ( $ model ) . ':relationship:' . $ relationshipName ; if ( array_key_exists ( $ index , $ this -> relationships ) ) { unset ( $ this -> relationships [ $ index ] ) ; } }
Clears a relationship's results from the cache.
Clears a relationship ' s results from the cache .