Bladeren bron

fixes

tags/0.1.0
Robin Thoni 9 jaren geleden
bovenliggende
commit
6b9499ad99
2 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 1
    0
      src/Utils/LuDataAccess.php
  2. 1
    0
      src/Utils/LuModel.php

+ 1
- 0
src/Utils/LuDataAccess.php Bestand weergeven

91
     public static function addId($data)
91
     public static function addId($data)
92
     {
92
     {
93
         $data = static::getModel()->fromDBO($data);
93
         $data = static::getModel()->fromDBO($data);
94
+        unset($data->id);
94
         $data->save();
95
         $data->save();
95
         return $data->id;
96
         return $data->id;
96
     }
97
     }

+ 1
- 0
src/Utils/LuModel.php Bestand weergeven

9
  * LuModel
9
  * LuModel
10
  *
10
  *
11
  * @method static LuModel where($column, $operator, $value)
11
  * @method static LuModel where($column, $operator, $value)
12
+ * @method static LuModel orWhere($column, $operator, $value)
12
  * @method static LuModel orderBy($column, $order)
13
  * @method static LuModel orderBy($column, $order)
13
  * @method static LuModel take($count)
14
  * @method static LuModel take($count)
14
  * @method static LuModel offset($offset)
15
  * @method static LuModel offset($offset)

Laden…
Annuleren
Opslaan