Skip to content

2.2.0

Choose a tag to compare

@dereuromark dereuromark released this 24 Oct 13:19
· 548 commits to master since this release

Included commits: 2.1.1...2.2.0

Improvements

Previously exceptions were silently caught in $foo->fromArray($bar->toArray()) when $ignoreMissingProperty was set to true and it tried to set a string on an array property.

  • Transfer generation now throws an exception for invalid matches and it must be ensured that the types matching when used with fromArray().
  • Removed use statements in generated transfer objects.
  • Uses FQCN now in generated transfer object doc blocks.

Warning
There is a small change of behavior now regarding mass assignment.
Please make sure any $transfer->fromArray($otherTransfer->toArray()) is now $transfer->fromArray($otherTransfer->modifiedToArray()). This only affects transfer to transfer assignment, entities are not affected.