@@ -50,16 +50,16 @@ |
||
| 50 | 50 | return $destination; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - /** |
|
| 54 | - * Turn the stadClass object to the type of calling Model |
|
| 55 | - * |
|
| 56 | - * @param String $destination |
|
| 57 | - * @param Object $sourceObject |
|
| 58 | - * @return Object $destination |
|
| 59 | - * |
|
| 60 | - * @author RN Kushwaha <[email protected]> |
|
| 61 | - * @since v0.0.5 |
|
| 62 | - */ |
|
| 53 | + /** |
|
| 54 | + * Turn the stadClass object to the type of calling Model |
|
| 55 | + * |
|
| 56 | + * @param String $destination |
|
| 57 | + * @param Object $sourceObject |
|
| 58 | + * @return Object $destination |
|
| 59 | + * |
|
| 60 | + * @author RN Kushwaha <[email protected]> |
|
| 61 | + * @since v0.0.5 |
|
| 62 | + */ |
|
| 63 | 63 | public function turnObjects($destination, $data) |
| 64 | 64 | { |
| 65 | 65 | $destination = new $destination(); |
@@ -28,7 +28,9 @@ |
||
| 28 | 28 | $query = "UPDATE ".$this->table." SET "; |
| 29 | 29 | foreach($row as $key => $val){ |
| 30 | 30 | $ar[':'.$key] = $val; |
| 31 | - if($key == 'id') continue; |
|
| 31 | + if($key == 'id') { |
|
| 32 | + continue; |
|
| 33 | + } |
|
| 32 | 34 | $query.= $this->qb->quote($key)." =:".$key.","; |
| 33 | 35 | } |
| 34 | 36 | |