Skip to content

Commit

Permalink
Merge pull request #725 from daveroverts/patch-1
Browse files Browse the repository at this point in the history
Change method of creating object without magic methods
  • Loading branch information
rubenvanassche authored Apr 4, 2024
2 parents daa17e5 + 1d38caf commit 852f645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/as-a-data-transfer-object/creating-a-data-object.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ objects. When a null value is given, it will return null.
You can ignore the magical creation methods when creating a data object as such:

```php
SongData::withoutMagicalCreationFrom($song);
SongData::factory()->withoutMagicalCreation()->from($song);
```

## Advanced creation using factories
Expand Down

0 comments on commit 852f645

Please sign in to comment.