From ce8dccc1fc35b5f5c08d5ecae8c95952cde731fe Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 23 Aug 2008 21:31:38 +0000 Subject: [PATCH] Expanding docblock on model::save() git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7491 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/model/model.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cake/libs/model/model.php b/cake/libs/model/model.php index 399c7424c..ecfbf40d9 100644 --- a/cake/libs/model/model.php +++ b/cake/libs/model/model.php @@ -1021,7 +1021,9 @@ class Model extends Overloadable { * Saves model data to the database. By default, validation occurs before save. * * @param array $data Data to save. - * @param boolean $validate If set, validation will be done before the save + * @param mixed $validate Either a boolean, or an array. + * If a boolean, indicates whether or not to validate before saving. + * If an array, allows control of validate, callbacks, and fieldList * @param array $fieldList List of fields to allow to be written * @return mixed On success Model::$data if its not empty or true, false on failure * @access public