Repository navigation
3.8.0
·
363 commits
to master
since this release
Included commits: 3.7.2...3.8.0
Improvements
- Introduced a new property "associative" in the transfer objects.
- Updated transfer generator to add the required methods for the transfer objects to be able to work with hash arrays.
Example:
$fooTransfer = new FooTranfer();
// example for adding transfers with associated keys
$fooTransfer->addBar('a', new BarTransfer());
$fooTransfer->addBar('b', new BarTransfer());
// example for setting transfer object with associated keys
$bars = new \ArrayObject(['a' => new BarTransfer(), 'b' => new BarTransfer(),]);
$fooTransfer->setBars($bars);
// example for adding associated array items
$fooTransfer->addBaz('x', 'X');
$fooTransfer->addBaz('y', 'Y');
// example for setting associated array
$fooTransfer->setBazs([ 'x' => 'X', 'y' => 'Y',]);