Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
alevikzs committed Feb 28, 2016
1 parent 1a7d56a commit 84a1f22
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,19 @@ $transforms = (new \PhMap\Transforms())
$result = $mapper->setTransforms($transforms)->map();
```

For skipping some attributes and not map them, you can use ```setSkipAttributes(array $attributes)```:

```php
$mapper = new \PhMap\Mapper\Structure\Object($tree, 'Tree')

$attributes = [
'name',
'branch.length'
];

$result = $mapper->setSkipAttributes($attributes)->map();
```

If you want to disable validation you can use ```disableValidation()``` method:

```php
Expand Down

0 comments on commit 84a1f22

Please sign in to comment.