Skip to content

Commit

Permalink
Fixing inaccurate return type in doc block for Model::saveField(). Cl…
Browse files Browse the repository at this point in the history
…oses #978
  • Loading branch information
ADmad committed Aug 1, 2010
1 parent 4ca3266 commit d286f63
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cake/libs/model/model.php
Expand Up @@ -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'));
* }}}
Expand Down Expand Up @@ -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].
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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'),
Expand Down

0 comments on commit d286f63

Please sign in to comment.