Skip to content
Permalink
Browse files

Fixing inaccurate return type in doc block for Model::saveField(). Cl…

…oses #978
  • Loading branch information...
ADmad committed Aug 1, 2010
1 parent 4ca3266 commit d286f63f57fcec2fc337cf6014dc6014a0afc9d6
Showing with 7 additions and 7 deletions.
  1. +7 −7 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'),

0 comments on commit d286f63

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