Releases: php-kitchen/yii2-domain
0.0.35
0.0.34
This release brings new features to entity attributes functionality.
NEW FEATURES
Added ability to check that attribute was changed by the value (38)
The existing method wasAttributeChanged did not work as expected due to Yii's internal issue with attribute changes matching related to typecasting. The new method wasAttributeValueChanged added to have an ability to check whether the attribute value was changed.
Note: the new method is still a hack and can't guarantee 100% correct behavior. This functionality is still a work in progress.
0.0.33
Minor refactoring:
- Extracted method to gets query from the repository in
src/DB/Record.php
0.0.32
0.0.31
This release concentrated on a refactoring of PHPKitchen\Domain\Web\Base namespace.
BC BREAKS
Reorganized PHPKitchen\Domain\Web\Base namespace.
Actionmoved toPHPKitchen\Domain\Web\Base\ActionsEntityModificationActionmoved toPHPKitchen\Domain\Web\Base\ActionsListingModelmoved toPHPKitchen\Domain\Web\Base\ModelsRecoverableEntitiesListModelmoved toPHPKitchen\Domain\Web\Base\ModelsViewModelmoved toPHPKitchen\Domain\Web\Base\Models
DEPRECATIONS
To prevend immediate failure of existing applications, following classes are kept for temporarly BC compatibiity and maked as deprecated at PHPKitchen\Domain\Web\Base namespace:
ActionEntityModificationActionListingModelRecoverableEntitiesListModelViewModel
NEW FEATURES
Updated actions hierarchy to become more flexible
Split response, repository and session related actions to mixins:
PHPKitchen\Domain\Web\Base\Mixins\RepositoryAccess: provides generic repository management methodsPHPKitchen\Domain\Web\Base\Mixins\ResponseManagement: provides generic response management methodsPHPKitchen\Domain\Web\Base\Mixins\SessionMessagesManagement:provides generic session and flashes management methods
Extracted action hooks for successful and failed processing to mixin PHPKitchen\Domain\Web\Base\Mixins\EntityActionHooks
Added new base actions
CallableAction: for running strategies and callbacksServiceAction: for running services
Web\Base\Actions\Action improvements
Added new rendering methods to utilize a controller's rendering functionality:
renderViewFileForAjaxrenderFilerenderPartialrenderAjax
Added printable to enable/disable rendering in action through printView method.
0.0.30
0.0.29
Minor refactoring:
- Added markHandled method for Base/ModelEvent.php
- Added the reloading attributes from entity to model after save
- Added throwing NotFoundHttpException for Web/Mixins/ModelSearching::findEntityByIdentifierOrFail()
- Added ability to throw the exception outward for EntityModificationAction::tryToSaveEntity()
- Replaced query to repository::find() for getting related entity of record
- Fixed namespaces
0.0.28
Improvements
Approved PR Fix suppressed exception to allow throwing exceptions in the repository transactions.