Browse Source

added checkId

develop
Robin Thoni 7 years ago
parent
commit
824afd7321
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      src/Utils/Business/LuBusiness.php

+ 8
- 0
src/Utils/Business/LuBusiness.php View File

@@ -54,6 +54,14 @@ abstract class LuBusiness {
54 54
         return static::getDataAccess()->transact($function);
55 55
     }
56 56
 
57
+    /**
58
+     * @param $id int
59
+     */
60
+    public static function checkIdExists($id)
61
+    {
62
+        static::getSingleById($id);
63
+    }
64
+
57 65
     /**
58 66
      * @param $id int
59 67
      * @return LuDbo

Loading…
Cancel
Save