Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Stratadox committed Apr 29, 2018
1 parent 0d5f935 commit f481c95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ They provide a minor speed bonus at the cost of decreased integrity.
- `CastedFloat`
- `CastedInteger`

To skip the entire typecasting process, the `OriginalValue` can be used.
To skip the entire typecasting process, the `OriginalValue` mapping can be used.

Input to a `BooleanValue` must either be numeric or already boolean.
Numeric input larger than zero becomes `true`, zero or less becomes `false`.
Expand All @@ -86,8 +86,8 @@ Non-numeric strings can be mapped to boolean using the `CustomTruths` wrapper.
Each of the above mappings can be made *nullable* by wrapping the mapping with
`CanBeNull`.

For example, instead of `IntegerValue::inProperty('foo')`, to make
the `foo` property *nullable*: `CanBeNull::or(IntegerValue::inProperty('foo'))`
For example, instead of `IntegerValue::inProperty('foo')`, the `foo` property
can be made *nullable* with: `CanBeNull::or(IntegerValue::inProperty('foo'))`

### Relationship Mapping

Expand Down

0 comments on commit f481c95

Please sign in to comment.