From d286f63f57fcec2fc337cf6014dc6014a0afc9d6 Mon Sep 17 00:00:00 2001 From: ADmad Date: Mon, 2 Aug 2010 00:13:44 +0530 Subject: [PATCH] Fixing inaccurate return type in doc block for Model::saveField(). Closes #978 --- cake/libs/model/model.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cake/libs/model/model.php b/cake/libs/model/model.php index 914c7726588..60f1b5aa523 100644 --- a/cake/libs/model/model.php +++ b/cake/libs/model/model.php @@ -342,14 +342,14 @@ class Model extends Overloadable { * eg. `ParentThread` * * ### Overriding Model's __construct method. - * - * When overriding Model::__construct() be careful to include and pass in all 3 of the + * + * When overriding Model::__construct() be careful to include and pass in all 3 of the * arguments to `parent::__construct($id, $table, $ds);` * * ### Dynamically creating models * * You can dynamically create model instances using the the $id array syntax. - * + * * {{{ * $Post = new Model(array('table' => 'posts', 'name' => 'Post', 'ds' => 'connection2')); * }}} @@ -787,7 +787,7 @@ function setSource($tableName) { $this->schema(); } /** - * This function does two things: + * This function does two things: * * 1. it scans the array $one for the primary key, * and if that's found, it sets the current id to the value of $one[id]. @@ -1015,7 +1015,7 @@ function hasField($name) { } /** * Initializes the model for writing a new record, loading the default values - * for those fields that are not defined in $data, and clearing previous validation errors. + * for those fields that are not defined in $data, and clearing previous validation errors. * Especially helpful for saving data in loops. * * @param mixed $data Optional data array to assign to the model after it is created. If null or false, @@ -1124,7 +1124,7 @@ function field($name, $conditions = null, $order = null) { * @param string $name Name of the table field * @param mixed $value Value of the field * @param array $validate See $options param in Model::save(). Does not respect 'fieldList' key if passed - * @return boolean See Model::save() + * @return mixed See Model::save() * @access public * @see Model::save() * @link http://book.cakephp.org/view/75/Saving-Your-Data @@ -1954,7 +1954,7 @@ function hasAny($conditions = null) { * second parameter options for finding ( indexed array, including: 'conditions', 'limit', * 'recursive', 'page', 'fields', 'offset', 'order') * - * Eg: + * Eg: * {{{ * find('all', array( * 'conditions' => array('name' => 'Thomas Anderson'),