Releases: dereuromark/cakephp-dto
Releases · dereuromark/cakephp-dto
2.2.4
2.2.3
Fixes
- Fixed up set*OrFail() templates
2.2.2
Improvements
- Allow
sebastian/diff
v6
2.2.1
Fixes
- Only show changed exit code for verbose or dry-run.
2.2.0
Improvements
Added Enum support, mainly int/string backed enums are now handled gracefully.
Example:
<dto name="FooBar" immutable="true">
...
<field name="someUnit" type="\App\Model\Enum\MyUnit"/>
<field name="someStringBacked" type="\App\Model\Enum\MyStringBacked"/>
<field name="someIntBacked" type="\App\Model\Enum\MyIntBacked"/>
</dto>
Fixes
Fixed up immutable DTOs for setter (withOrFail
instead of setOrFail
). Please make sure you are not using the former one.
Full Changelog: 2.1.0...2.2.0
2.1.0
Improvements
Added DTO schema generator from JSON schema or JSON example data
Navigate to
/admin/cake-dto/generate
locally in order to leverage it.
Also:
- Collision avoidance for singular of collections when that field is already present in the DTO. One must set a different one then to be able to use the collection item methods.
- Multiple depths of namespace is now supported.
For a live demo see https://sandbox.dereuromark.de/sandbox/dto-examples/generator
2.0.0
CakePHP 5 compatible release
Enjoy DTOs in CakePHP apps the easy way: Minimal configuration, no manual coding needed.
1.8.0
Improvements
- Allow global key type config (
Dto::TYPE_DEFAULT
by default which usesDto::TYPE_CAMEL
)
1.7.0
Fixes
- Fixed generation for namespaced plugin names, e.g.
Foo/Bar
plugin.
Improvements
- Extending from any DTO compatible class is now possible.
1.6.0
Improvements
- Allow
Dto
suffix to be configurable, or removed using empty string. - PHP 7.4+ now.