public function getTableNameFromClass($class, $property = 'tableName', $default = null)
    {
        if (!class_exists($class) || !property_exists($class, $property)) {
            return $default;
        }

        $properties = get_class_vars($class);

        return $properties[$property];
    }