|
@@ 2210-2217 (lines=8) @@
|
| 2207 |
|
$options = array_merge(array('validate' => 'first', 'atomic' => true, 'deep' => false), $options); |
| 2208 |
|
$this->validationErrors = $validationErrors = array(); |
| 2209 |
|
|
| 2210 |
|
if (empty($data) && $options['validate'] !== false) { |
| 2211 |
|
$result = $this->save($data, $options); |
| 2212 |
|
if (!$options['atomic']) { |
| 2213 |
|
return array(!empty($result)); |
| 2214 |
|
} |
| 2215 |
|
|
| 2216 |
|
return !empty($result); |
| 2217 |
|
} |
| 2218 |
|
|
| 2219 |
|
if ($options['validate'] === 'first') { |
| 2220 |
|
$validates = $this->validateMany($data, $options); |
|
@@ 2332-2339 (lines=8) @@
|
| 2329 |
|
$options = array_merge(array('validate' => 'first', 'atomic' => true, 'deep' => false), $options); |
| 2330 |
|
$this->validationErrors = $validationErrors = array(); |
| 2331 |
|
|
| 2332 |
|
if (empty($data) && $options['validate'] !== false) { |
| 2333 |
|
$result = $this->save($data, $options); |
| 2334 |
|
if (!$options['atomic']) { |
| 2335 |
|
return array(!empty($result)); |
| 2336 |
|
} |
| 2337 |
|
|
| 2338 |
|
return !empty($result); |
| 2339 |
|
} |
| 2340 |
|
|
| 2341 |
|
if ($options['validate'] === 'first') { |
| 2342 |
|
$validates = $this->validateAssociated($data, $options); |