Closed iwillhappy1314 closed 5 years ago
the wp_usermeta data struchre:
wp_usermeta
CREATE TABLE `wp_usermeta` ( `umeta_id` bigint(20) UNSIGNED NOT NULL, `user_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0, `meta_key` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `meta_value` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
the user meta key is 'umeta_id'
but in the code of UserMeta model: https://github.com/tareq1988/wp-eloquent/blob/3388c399bcb4dd4ed5bd06f8790d7899198a4eb4/src/WP/UserMeta.php#L10
the $primaryKey is meta_id.
$primaryKey
meta_id
is there some magic method to convert this? or this is just a typo error?
I concur, that's a mistake in the lib
the
wp_usermeta
data struchre:the user meta key is 'umeta_id'
but in the code of UserMeta model: https://github.com/tareq1988/wp-eloquent/blob/3388c399bcb4dd4ed5bd06f8790d7899198a4eb4/src/WP/UserMeta.php#L10
the
$primaryKey
ismeta_id
.is there some magic method to convert this? or this is just a typo error?