src/Database/DatabaseCache.php
/**
	 * Removes the specified model instance if it exists in the cache.
	 *
	 * @param string $className The model's full class name.
	 * @param mixed $primaryKeyValue
	 * @return void
	 */
Removes the specified model instance if it exists in the cache.
@param string $className The model's full class name.
@param mixed $primaryKeyValue
@return void
Removes the specified model instance if it exists in the cache . @param string $className The model ' s full class name . @param mixed $primaryKeyValue @return void
public function clearModelInstance($className, $primaryKeyValue) {
		$index = serialize($primaryKeyValue);
		if (array_key_exists($className, $this->models)) {
			if (array_key_exists($index, $this->models[$className])) {
				unset($this->models[$className][$index]);
			}
		}
	}
public function clearModelInstance ( $ className , $ primaryKeyValue ) { $ index = serialize ( $ primaryKeyValue ) ; if ( array_key_exists ( $ className , $ this -> models ) ) { if ( array_key_exists ( $ index , $ this -> models [ $ className ] ) ) { unset ( $ this -> models [ $ className ] [ $ index ] ) ; } } }
Removes the specified model instance if it exists in the cache.
Removes the specified model instance if it exists in the cache .