Permalink
Browse files

move information about return value to the correct place in the doc b…

…lock of Model::saveAll()

Signed-off-by: Mark Story <mark@mark-story.com>
  • Loading branch information...
1 parent af92276 commit 3affec58c6fa40e40a40cfe3b515d2b9deaa85f5 Dieter Plaetinck committed with markstory Feb 23, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 cake/libs/model/model.php
@@ -1557,14 +1557,14 @@ function _prepareUpdateFields($data) {
* validate the records, but not save them.
* - atomic: If true (default), will attempt to save all records in a single transaction.
* Should be set to false if database/table does not support transactions.
- * If false, we return an array similar to the $data array passed, but values are set to true/false
- * depending on whether each record saved successfully.
* - fieldList: Equivalent to the $fieldList parameter in Model::save()
*
* @param array $data Record data to save. This can be either a numerically-indexed array (for saving multiple
* records of the same type), or an array indexed by association name.
* @param array $options Options to use when saving record data, See $options above.
- * @return mixed True on success, or false on failure
+ * @return mixed If atomic: True on success, or false on failure.
+ * Otherwise: array similar to the $data array passed, but values are set to true/false
+ * depending on whether each record saved successfully.
* @access public
* @link http://book.cakephp.org/view/84/Saving-Related-Model-Data-hasOne-hasMany-belongsTo
* @link http://book.cakephp.org/view/75/Saving-Your-Data

0 comments on commit 3affec5

Please sign in to comment.