put change log in docs.

This commit is contained in:
Taylor Otwell 2012-04-03 09:48:44 -05:00
parent 7d30d179b7
commit c31df7379b
3 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
## Laravel Change Log # Laravel Change Log
## Contents ## Contents
@ -20,9 +20,9 @@ ## Laravel 3.2
- Fixed the passing of strings into the Input::except method. - Fixed the passing of strings into the Input::except method.
- Fixed replacement of optional parameters in URL::transpose method. - Fixed replacement of optional parameters in URL::transpose method.
- Added "to_array" method to the base Eloquent model. - [Added `to_array` method to the base Eloquent model](/docs/database/eloquent#to-array).
- Added "$hidden" static variable to the base Eloquent model. - [Added `$hidden` static variable to the base Eloquent model](/docs/database/eloquent#to-array).
- Added "sync" method to has_many_and_belongs_to Eloquent relationship. - [Added `sync` method to has\_many\_and\_belongs\_to Eloquent relationship](/docs/database/eloquent#sync-method).
- Improved View performance by only loading contents from file once. - Improved View performance by only loading contents from file once.
- Fix handling of URLs beginning with has in URL::to. - Fix handling of URLs beginning with has in URL::to.

View File

@ -1,5 +1,6 @@
### General ### General
- [Laravel Overview](/docs/home) - [Laravel Overview](/docs/home)
- [Change Log](/docs/changes)
- [Installation & Setup](/docs/install) - [Installation & Setup](/docs/install)
- [Requirements](/docs/install#requirements) - [Requirements](/docs/install#requirements)
- [Installation](/docs/install#installation) - [Installation](/docs/install#installation)

View File

@ -304,6 +304,7 @@ ## Inserting Related Models
$user->roles()->attach($role_id); $user->roles()->attach($role_id);
<a name="sync-method"></a>
Alternatively, you can use the `sync` method, which accepts an array of IDs to "sync" with the intermediate table. After this operation is complete, only the IDs in the array will be on the intermediate table. Alternatively, you can use the `sync` method, which accepts an array of IDs to "sync" with the intermediate table. After this operation is complete, only the IDs in the array will be on the intermediate table.
$user->roles()->sync(array(1, 2, 3)); $user->roles()->sync(array(1, 2, 3));