Skip to content
Permalink
Browse files

Updating docblock

  • Loading branch information...
ADmad committed Feb 12, 2012
1 parent 2afb05b commit 1dd0ff170162ce44c699e6fd8c37e9871a326b37
Showing with 16 additions and 2 deletions.
  1. +16 −2 lib/Cake/Model/Model.php
@@ -1966,7 +1966,14 @@ protected function _prepareUpdateFields($data) {
* or 'only' to only 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.
* - fieldList: Equivalent to the $fieldList parameter in Model::save()
* - fieldList: Equivalent to the $fieldList parameter in Model::save().
* It should be an associate array with model name as key and array of fields as value. Eg.
* {{{
* array(
* 'SomeModel' => array('field'),
* 'AssociatedModel' => array('field', 'otherfield')
* )
* }}}
*
* @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.
@@ -2109,7 +2116,14 @@ public function validateMany($data, $options = array()) {
* 'first' to validate *all* records before any are saved(default),
* - `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.
* - `fieldList` Equivalent to the $fieldList parameter in Model::save()
* - fieldList: Equivalent to the $fieldList parameter in Model::save().
* It should be an associate array with model name as key and array of fields as value. Eg.
* {{{
* array(
* 'SomeModel' => array('field'),
* 'AssociatedModel' => array('field', 'otherfield')
* )
* }}}
*
* @param array $data Record data to save. This should be an array indexed by association name.
* @param array $options Options to use when saving record data, See $options above.

0 comments on commit 1dd0ff1

Please sign in to comment.
You can’t perform that action at this time.