@@ 79-81 (lines=3) @@ | ||
76 | $options = array_merge($this->options, $options); |
|
77 | $insert = $this->db->insert() |
|
78 | ->into($this->tableName); |
|
79 | if(array_key_exists('mask', $options) && is_array($options['mask'])) { |
|
80 | $insert->setMask(array_values($options['mask'])); |
|
81 | } |
|
82 | if(count($this->primaryKeys) === 1) { |
|
83 | $insert->setKey($this->primaryKeys[0]); |
|
84 | } |
|
@@ 110-112 (lines=3) @@ | ||
107 | $options = array_merge($this->options, $options); |
|
108 | $insert = $this->db->insert() |
|
109 | ->into($this->tableName); |
|
110 | if(array_key_exists('mask', $options) && is_array($options['mask'])) { |
|
111 | $insert->setMask(array_values($options['mask'])); |
|
112 | } |
|
113 | if(count($this->primaryKeys) === 1) { |
|
114 | $insert->setKey($this->primaryKeys[0]); |
|
115 | } |
|
@@ 141-143 (lines=3) @@ | ||
138 | $options = array_merge($this->options, $options); |
|
139 | $update = $this->db->update() |
|
140 | ->table($this->tableName); |
|
141 | if(array_key_exists('mask', $options) && is_array($options['mask'])) { |
|
142 | $update->setMask(array_values($options['mask'])); |
|
143 | } |
|
144 | if(array_key_exists('defaults', $options)) { |
|
145 | $data = array_merge($options['defaults'], $data); |
|
146 | } |