Browse Source

minor doc fix.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
2ae5c23d48
  1. 4
      docs/guide/active-record.md
  2. 2
      docs/guide/validation.md

4
docs/guide/active-record.md

@ -175,7 +175,9 @@ $customer->delete();
Customer::updateAllCounters(array('age' => 1)); Customer::updateAllCounters(array('age' => 1));
``` ```
Notice that you can always use the `save` method, and ActiveRecord will automatically perform an INSERT for new records and an UPDATE for existing ones. > Info: The `save()` method will either perform an `INSERT` or `UPDATE` SQL statement, depending
on whether the ActiveRecord being saved is new or not by checking `ActiveRecord::isNewRecord`.
Data Input and Validation Data Input and Validation
------------------------- -------------------------

2
docs/guide/validation.md

@ -38,7 +38,7 @@ Compares the specified attribute value with another value and validates if they
Verifies if the attribute represents a date, time or datetime in a proper format. Verifies if the attribute represents a date, time or datetime in a proper format.
- `format` the date format that the value being validated should follow accodring to [[http://www.php.net/manual/en/datetime.createfromformat.php]]. _('Y-m-d')_ - `format` the date format that the value being validated should follow according to [[http://www.php.net/manual/en/datetime.createfromformat.php]]. _('Y-m-d')_
- `timestampAttribute` the name of the attribute to receive the parsing result. - `timestampAttribute` the name of the attribute to receive the parsing result.
### `default`: [[DefaultValueValidator]] ### `default`: [[DefaultValueValidator]]

Loading…
Cancel
Save