Releases: atk4/data
Releases · atk4/data
2.3.1
Fix versioning
2.2.1
Fix dependencies and versioning
2.3.0
What’s Changed
- Fix GC for CallbackFilterIterator using WeakReference (#737) @mvorisek
- Fix scheduled/200 iterations burn test (#736) @mvorisek
- Add smoke and burn CI testing (#735) @mvorisek
- Add loadany() to Array_ Persistence (#715) @PhilippGrashoff
- Fix array persistence - addIdToLoadRow() must be called on data passed by-reference (#731) @DarkSide666
- fix Model::addFields() with field object (#730) @mvorisek
- Better Field::compare() (#729) @mvorisek
- Persistence\Sql::getFieldSqlExpression return expression using field owner expr method (#722) @georgehristov
- Introduce Field::getPersistenceName method (#728) @georgehristov
- Revert to official Docker image (#726) @mvorisek
- Update CS - require strict comparison (#631) @mvorisek
- Add Oracle DB support (#723) @mvorisek
- [fix] Condition key can be Expressionable (#721) @georgehristov
- Use dsql\Query::exists (#725) @georgehristov
- Add MSSQL support (#719) @mvorisek
- Fix issues with dirty ID (#718) @mvorisek
- Fix PostgreSQL CI errors (#706) @mvorisek
- On-the-fly transform of ID in array persistance from key to result data (#709) @mvorisek
- Fix missing Model::reload_after_save restore (#703) @mvorisek
- Add type hinting to persistence connect (#701) @PhilippGrashoff
- Update tests CS (#698) @mvorisek
- Add type validation to factory calls (#624) @mvorisek
- Move types to code if possible (#554) @mvorisek
- [refactor] move ModelArrayAccessTrait to correct place in NS structure (#694) @georgehristov
- Remove no longer relevant comment (#693) @mvorisek
- Fix query on hasOne referenced model (#686) @georgehristov
- Refactor usages of call_user_func to direct calls (#687) @mvorisek
- Move Join to Model\Join (#680) @georgehristov
- Introduce getQueryArguments in Field (#685) @georgehristov
- Reference::addField $ourFieldName variable name for clarity (#681) @georgehristov
- Separate Model reference methods in a trait (#679) @georgehristov
- Improve naming consistency renaming Model\HasUserActionsTrait to Model\UserActionsTrait (#678) @georgehristov
- Refactor references NS to use consistent and explicit variable and method names (#675) @georgehristov
- Improve Model::withPersistence (#676) @georgehristov
- Use constants to define Condition operators (#673) @georgehristov
- Fix typo in phpdoc in Scope class (#674) @mvorisek
- Мove Scope class to Model NS (#672) @georgehristov
- Rename CompoundCondition class to Scope (#671) @georgehristov
- Drop legacy/hack support of OR junction in anything else than legacy Model::addCondition() (#670) @mvorisek
- Persistence\Csv rename variables to explicit names (#668) @georgehristov
- Scope improve usability - addCondition() should not wrap (#664) @mvorisek
- Rename BasicCondition to Condition (#663) @mvorisek
- Unify Model::addCondition() and CompoundCondition::addCondition() (#666) @georgehristov
- Persistence\Sql rename variables to explicit names (#665) @georgehristov
- Fix Scope::createXx bug (#667) @mvorisek
- Fix Iterator data types (#659) @DarkSide666
- Fix composer.json (#658) @DarkSide666
Breaking Changes
- Fix not rebound hooks after clone (#711) @mvorisek
- Remove persistence override support from Model::load/save/atomic methods (#732) @mvorisek
- Stricter Condition validation, remove legacy OR condition support (#720) @mvorisek
- Drop magic ID property from Model (#716) @mvorisek
- Drop $from_persistence support for Model::load() (#717) @mvorisek
- Drop ID property in advance of standard row data, provide BC using magic (#708) @mvorisek
- Convert Model to Entity (prevent reload with a different record) (#697) @mvorisek
- Make init() methods protected and fix calls to ->invokeInit() (#695) @mvorisek
- Use "asc"/"desc" strings for order direction instead of false/true (#626) @mvorisek
Major Features
2.2.0
Breaking Changes
- Enforce array in method prototypes when appropriate (#567) @mvorisek
- Add separate/explicit Model::setMulti() method, Model::set() no longer accepts array (#621) @mvorisek
- Drop AppScopeTrait trait from Model & Persistence classes (#654) @mvorisek
- Fix PSR class/trait/method naming (#652) @mvorisek
- [refactor] UserAction\Generic to Model\UserAction (#634) @georgehristov
- Improve array persistence and disallow passing array by reference (#627) @mvorisek
- HasXxx() methods now return bool only + always require field to be defined first (#616) @mvorisek
What’s Changed
- Fix composer develop install issue (#657) @DarkSide666
- Update CS for PHP 7.3 (#653) @mvorisek
- Drop PHP 7.2 support (#649) @mvorisek
- Separate UserAction validation in a protected method (#650) @georgehristov
- Move safe "@return bool" phpdoc to code (#647) @mvorisek
- Fix UserAction\Generic deprecation warning (#646) @georgehristov
- Test with native MySQL 8.0 (#645) @mvorisek
- Add testing with PHP 8.0 (#644) @mvorisek
- [hotfix] backward compatibility for UserAction::$scope property (#643) @georgehristov
- fix reference (#642) @DarkSide666
- Fix default action icon seeds (#640) @mvorisek
- Use strict array seed (#639) @mvorisek
- [fix] dsql Postresql Connection class (#638) @georgehristov
- [update] use dsql refactored connection class (#637) @georgehristov
- Fix generated caption for anonymous classes (#633) @mvorisek
- Html param for DSQL\Expression::getDebugQuery() is no longer supported (#632) @mvorisek
- Update CS - require strict types (#625) @mvorisek
- Fix tests when SqlFormatter formatter lib is available (#628) @mvorisek
- Add codecov.yml config (#623) @mvorisek
- Better fix for null offset limit (#613) @mvorisek
- Remove @throws by CS fixer (#622) @mvorisek
- Fix typo - ModelArrayAccessTrait is trait (not class) (#620) @mvorisek
- Fix tests - exception message changed in atk4/core (#619) @mvorisek
- Delete CHANGELOG.md (#618) @mvorisek
- Revert mandatory validation (keep unfixed as before phpunit upgrade) (#615) @DarkSide666
- Fix Email field test (#612) @DarkSide666
- Upgrade phpunit (#561) @mvorisek
2.1.0
Large Breaking Changes
- Isolate ArrayAccess from Model to optional/BC trait (#591) @mvorisek - add ModelArrayAccessTrait to your Model classes where needed
- Change and move hook names to constants (#597) @mvorisek - read and update your code. Version 2.0.5 should be backwards compatible with this.
Breaking Changes
- Convert callables to closures and move hook names to constants (#597) @mvorisek
- Remove expr explode (#609) @mvorisek
- Remove support of default field + do not explode CSV string/value (#604) @mvorisek
- Allow to add() only an object (#565) @mvorisek
- Remove NameTrait trait from Model (#596) @mvorisek
What’s Changed
- Fix exception constructor refactoring (#608) @mvorisek
- Refactor exception constructor calls to not use array (#607) @mvorisek
- Remove support of relative class names (#603) @mvorisek
- Small normalization changes (#580) @mvorisek
- Remove lastInsertID() from Model (#592) @mvorisek
- [feature] Action modifier (#602) @ibelar
- add documentation for Model::setNull() (#601) @romaninsh
- Remove NameTrait trait from Model (#594) @mvorisek
- hotfix ArrayAccess (#595) @mvorisek
- No incomplete tests by default for Sqlite and MySQL (#583) @mvorisek
- move lastInsertID to persistence (#585) @DarkSide666
- Normalize Unit Testing workflow across repos (#571) @mvorisek
- Update Model.php (#584) @vorismi3
- Model::setNull() - Allow field value unset (#569) @mvorisek
- Remove old Travis files (#550) @mvorisek
- add missing double backslash in class references (#570) @georgehristov
- Simplify locale path getter (#568) @mvorisek
- Delete ConnectionInterface.php (#564) @mvorisek
- Fix phpunit before full upgrade (#562) @mvorisek
- Fix driver type refactor (#559) @mvorisek
- Remove vim comment (#560) @mvorisek
- Change "driverType" to "driver type" in exception message (#558) @mvorisek
- Don't use addMethod() with non-callable. Also add return types (#556) @mvorisek
- Remove deprecated classes in 2.x version (#552) @mvorisek
- Refactor driver type (#553) @mvorisek
2.0.4
2.0.3
What’s Changed
- Fix refactorability for "owner" (#543) @mvorisek
- Use null coalescing operator instead of isset (#545) @mvorisek
- Convert scalar class names to ::class (#544) @mvorisek
- introduce sql null condition test (#540) @georgehristov
- Fix value trim (#538) @DarkSide666
- fix #533 (#537) @DarkSide666
- Fix LIKE conditions - fix fix (#535) @mvorisek
- chore: merge develop into feature/number-field (#528) @georgehristov
- Fix LIKE conditions for Array and SQL persistences (#532) @DarkSide666
- Action should also support
fields===true
value (#531) @DarkSide666 - Implement addWith() (#527) @DarkSide666
- Fix hook trait usage (#525) @mvorisek
- Simplify code (#519) @mvorisek
- Do not fail-fast PHP test matrix (#522) @mvorisek
- Callback fields should not be sortable (#516) @DarkSide666
- [REFACTOR] rename addHook to onHook (#514) @georgehristov
- New method $model->getTitles() (#513) @DarkSide666
- Fix hasOne relation seed processing. It should replace not merge. (#512) @DarkSide666
2.0.2
What’s Changed
- include comment about hooks and example how to execute them (#510) @georgehristov
- Add microseconds persistence support for datetime/time types + fix normalization/cloning issue (#504) @mvorisek
- Accept any DateTimeInterface impl. for datetime (#505) @mvorisek
- update multiple delete example in docs (#503) @georgehristov
- Fix/ Small Action related fix (#502) @ibelar
- better implementation for addFields() and test cases (#499) @DarkSide666
- Fix empty array condition (#498) @DarkSide666
- model default add field property (#454) @funyx
- Feature/set custom edit exec button (#490) @georgehristov
- Feature/add confirmation callback argument (#491) @georgehristov
- Feature remove specified action (#489) @georgehristov
- Fix/persistence sql condition (#487) @georgehristov
- Fix/delete callback (#488) @georgehristov
2.0.1
What’s Changed
- clean up bundler (#493) @romaninsh
- Feature/pgsql test (#486) @DarkSide666
- Implement #386 (#477) @DarkSide666
- added locale test (#485) @romaninsh
Enhancements
- Add matrix testing (#492) @romaninsh
2.0.0
What’s Changed
- Feature/test1 (#483) @romaninsh
- Add pgsql workflow (#480) @romaninsh
- Implement GitHub action support (#478) @romaninsh
- Fix model OR condition typecast (#476) @DarkSide666
- EXPEREMENTAL - use Actions internally (#442) @romaninsh
- setOrder() support for expressions (#475) @DarkSide666
- Reference caption implementation (#470) @DarkSide666
- Lokalise: Translations update (#468) @romaninsh
- Implements onRollback hook (#466) @DarkSide666
- Lokalise: Translations update (#464) @romaninsh
- Add Unit test cases for field default value (#458) @abbadon1334
- add is_update flag on beforeSave Hook! (#462) @romaninsh
- containsOne/Many changes for UI (#459) @DarkSide666
- Only call \DateTime::format if its an instance (#453) @PhilippGrashoff
- Reference get caption (#447) @abbadon1334
- Fix Email Field Validation - Add Require ext-intl (#448) @abbadon1334
- Added new Email type (#446) @romaninsh
- Model::addField() to use $model->fields property rather than elements (and new Trait) (#445) @romaninsh
- Feature/actions use multicontainer (#444) @romaninsh
- Add support, specifying which fields can be dirty during action call. (#440) @romaninsh
- Apply fixes from StyleCI (#441) @romaninsh
- Apply fixes from StyleCI (#437) @DarkSide666
- CSV persistence should sanitize headers / field names (#436) @DarkSide666
- Implements User Actions as per wiki (#399) @romaninsh
- Improving documentation of Model (#419) @romaninsh
- Implements DeepCopy->transformData() (#430) @DarkSide666
- add condition if ref(hasOne) model not loaded (#413) @funyx
- Nesty BUG. was still returning wrong (#431) @gowrav-vishwakarma
- Improve wording in persistence.rst (#427) @acicovic
- Fix typo in joins.rst (#426) @acicovic
- Apply fixes from StyleCI (#425) @romaninsh
- should solve bug #698 (#414) @gowrav-vishwakarma
- implement action(field) for array persistence, fix #415 (#421) @DarkSide666
- Feature/contains one many 2 (#412) @DarkSide666
- Apply fixes from StyleCI (#1) @funyx
- Apply fixes from StyleCI (#411) @DarkSide666
- Feature/persistence array add iterator method like (#406) @funyx
- Feature/fix 409 loadby (#410) @DarkSide666
- Refactor namespaces (#405) @DarkSide666
- Fix logic error in example (#397) @PhilippGrashoff
- Dark side666 patch 1 (#398) @romaninsh
- Apply fixes from StyleCI (#395) @DarkSide666
- Fix #389 Field Time after save wrong return value (#394) @abbadon1334
- implement insert lookups (#392) @romaninsh