Fix $databaseTableIndexName for UserTrophy
authorJoshua Rüsweg <josh@bastelstu.be>
Sat, 15 Jul 2017 20:50:24 +0000 (22:50 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Sat, 15 Jul 2017 20:50:42 +0000 (22:50 +0200)
See #2315

wcfsetup/install/files/lib/data/user/trophy/UserTrophy.class.php

index 0213f562500c4967e1fbef8cfce8b75b67855b3b..1bb469996f8d08c2c48eed13182fd00792b2e956 100644 (file)
@@ -25,9 +25,14 @@ use wcf\util\StringUtil;
  * @property-read      integer         $userID                         user id
  * @property-read      integer         $time                           the time when the trophy was rewarded
  * @property-read      string          $description                    the custom trophy description
- * @property-read      string          $useCustomDescription           `1`, iif the trophy use a custom description
+ * @property-read      string          $useCustomDescription           `1`, if the trophy use a custom description
  */
 class UserTrophy extends DatabaseObject {
+       /**
+        * @inheritDoc
+        */
+       protected static $databaseTableIndexName = 'userTrophyID';
+       
        /**
         * The description text replacements. 
         * @var string[]