mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-06-13 10:13:31 +00:00
Removing default null value for $data parameter. Refs GH pull request #646
This commit is contained in:
parent
335f3558a9
commit
eeff950cf9
1 changed files with 1 additions and 1 deletions
|
@ -1993,7 +1993,7 @@ class Model extends Object implements CakeEventListener {
|
|||
* @link http://book.cakephp.org/2.0/en/models/saving-your-data.html#model-saveassociated-array-data-null-array-options-array
|
||||
* @link http://book.cakephp.org/2.0/en/models/saving-your-data.html#model-saveall-array-data-null-array-options-array
|
||||
*/
|
||||
public function saveAll($data = null, $options = array()) {
|
||||
public function saveAll($data, $options = array()) {
|
||||
$options = array_merge(array('validate' => 'first'), $options);
|
||||
if (Hash::numeric(array_keys($data))) {
|
||||
if ($options['validate'] === 'only') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue