Skip to content

Commit

Permalink
Add something extra for saving.
Browse files Browse the repository at this point in the history
  • Loading branch information
sinyu890807 committed Aug 27, 2014
1 parent 6e2fabb commit ab1789a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ song2.setDuration(356);
song2.setAlbum(album);
song2.save();
```
This will insert album, song1 and song2 into database with relations.

#### 3. Update data
Each model which inherits from **DataSupport** would also have **update()** and **updateAll()** method. You can update a single record with a specified id:
Expand Down

0 comments on commit ab1789a

Please sign in to comment.