Browse Source

fixes

tags/0.1.0
Robin Thoni 10 years ago
parent
commit
6b9499ad99
2 changed files with 2 additions and 0 deletions
  1. 1
    0
      src/Utils/LuDataAccess.php
  2. 1
    0
      src/Utils/LuModel.php

+ 1
- 0
src/Utils/LuDataAccess.php View File

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 View File

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)

Loading…
Cancel
Save