public static function callMethod($object, $methodName, $argValues) { $method = new ReflectionMethod(get_class($object), $methodName); $result = $method->invokeArgs($object, $argValues); BeanLocator::storeBean($object); return $result; }
public function resetSingle($entity, $id) { if (!$this->enabled) { return; } unset($this->cache[$entity][self::SINGLE][$id]); BeanLocator::storeBean($this); }