Skip to content

Commit

Permalink
Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
igaster committed Jan 1, 2016
1 parent 1d3d5d4 commit 4cad1e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ $translations->set([ // Set a batch of translations

## Handle Conflicts:

1. __get() & __set()
#### 1. __get() & __set()

This Trait makes use of the `__get()` and `__set()` magic methods to perform its ... well... magic! However if you want to implement these functions in your model or another trait then php will complain about conflicts. To overcome this problem you have to hide the Traits methods when you import it:

Expand Down Expand Up @@ -180,7 +180,7 @@ public function __set($key, $value) {
}
```

1. boot(), create(), update() methods
#### 2. boot(), create(), update() methods

This trait implements the `boot()` method to handle cascaded deletes of the translations. If you should implemeent `boot()` in your model then [rename the method](http://php.net/manual/en/language.oop5.traits.php) when you import the trait:

Expand Down

0 comments on commit 4cad1e3

Please sign in to comment.