Browse Source

update docblock

ADmad 10 years ago
parent
commit
605bc59229
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/ORM/Table.php

+ 6 - 2
src/ORM/Table.php

@@ -1619,10 +1619,14 @@ class Table implements RepositoryInterface, EventListenerInterface, EventDispatc
     }
 
     /**
-     * Saves multiple records for a table.
+     * Persists multiple entities of a table.
+     *
+     * The records will be saved in a transaction which will be rolled back if
+     * any one of the records fails to save due to failed validation or datbase
+     * error.
      *
      * @param array|\Cake\ORM\ResultSet $entities Entities to save.
-     * @param array $options Options used when calling Table::save() for each entity.
+     * @param array|\ArrayAccess $options Options used when calling Table::save() for each entity.
      * @return bool|array|\Cake\ORM\ResultSet False on failure, entities list on succcess.
      */
     public function saveMany($entities, $options = [])