cycle/orm
PHP DataMapper, ORM
30 Releases
Latest: 1w ago
v2.18.0Latest
📋 What's Changed
- Add RefersToMorphed relation for cyclic morphed references by @roxblnfk in https://github.com/cycle/orm/pull/570
- Full Changelog: https://github.com/cycle/orm/compare/v2.17.0...v2.18.0
v2.17.0
📋 What's Changed
- Support BackedEnum for discriminator values in STI by @roxblnfk in https://github.com/cycle/orm/pull/566
- Support `wrapWhere()` from database 2.19 by @roxblnfk in https://github.com/cycle/orm/pull/567
- Add `wrapWhere` option to `QueryScope` by @roxblnfk in https://github.com/cycle/orm/pull/568
- Fix relation override scope lost when Select is cloned by @roxblnfk in https://github.com/cycle/orm/pull/569
- Full Changelog: https://github.com/cycle/orm/compare/v2.16.2...v2.17.0
v2.16.2
📋 What's Changed
- Fix embedded entities loading via BulkLoader by @roxblnfk in https://github.com/cycle/orm/pull/565
- Full Changelog: https://github.com/cycle/orm/compare/v2.16.1...v2.16.2
v2.16.1
📋 What's Changed
- Enhanced documentation in load options classes in 62ded837299beab7a15a9324c6bb9f0a76c4db45
- Full Changelog: https://github.com/cycle/orm/compare/v2.16.0...v2.16.1
v2.16.0
📋 What's Changed
- Allow `json` type to be a scalar in the default Typecast by @gam6itko in https://github.com/cycle/orm/pull/562
- Stream entities lazily via `Select::cursor()` by @roxblnfk in https://github.com/cycle/orm/pull/564
- Full Changelog: https://github.com/cycle/orm/compare/v2.15.0...v2.16.0
v2.15.0
📋 What's Changed
- Support LoadOptions DTOs in `BulkLoader::load()` by @roxblnfk in https://github.com/cycle/orm/pull/559
- Declare Select methods in code instead of annotations by @roxblnfk in https://github.com/cycle/orm/pull/560
- Full Changelog: https://github.com/cycle/orm/compare/v2.14.3...v2.15.0
v2.14.3
📋 What's Changed
- Fix keys processing in BulkLoader by @roxblnfk in https://github.com/cycle/orm/pull/558
- Full Changelog: https://github.com/cycle/orm/compare/v2.14.2...v2.14.3
v2.14.2
📋 What's Changed
- Fix BulkLoader indexing with Stringable primary keys by @roxblnfk in https://github.com/cycle/orm/pull/557
- Full Changelog: https://github.com/cycle/orm/compare/v2.14.1...v2.14.2
v2.14.1
📦 Why?
- Even though this behavior is backed by tests, we still recommend not doing it this way for best practice reasons.
- Full Changelog: https://github.com/cycle/orm/compare/v2.14.0...v2.14.1
v2.14.0
📋 What's Changed
- Add options DTOs for `Select::load()` method by @roxblnfk in https://github.com/cycle/orm/pull/553
- Fix indexing of entities with object PK like UUID in BulkLoader by @roxblnfk in https://github.com/cycle/orm/pull/554
- Fix `BelongsToMorphed` not clearing morph type on null relation by @roxblnfk in https://github.com/cycle/orm/pull/555
- Full Changelog: https://github.com/cycle/orm/compare/v2.13.2...v2.14.0
v2.13.2
📋 What's Changed
- Fix a bug when related fields were not filled in BelongsToMorphed by @roxblnfk in https://github.com/cycle/orm/pull/550
- Full Changelog: https://github.com/cycle/orm/compare/v2.13.1...v2.13.2
v2.13.1
📋 What was changed
- Revert #491: a bug found in a side project
- Full Changelog: https://github.com/cycle/orm/compare/v2.13.0...v2.13.1
v2.13.0
📋 What's Changed
- Add `UnitOfWork::hasPendingChanges()` method by @roxblnfk in https://github.com/cycle/orm/pull/548
- Add `orderBy` to HasOne loader by @markinigor in https://github.com/cycle/orm/pull/487
- Optimize relations resolving by @peldax in https://github.com/cycle/orm/pull/491
- Fix `TEntity` generics by @rincler in https://github.com/cycle/orm/pull/524
- Resolve issue #523 by @hiscaler in https://github.com/cycle/orm/pull/525
✨ New Contributors
- @hiscaler made their first contribution in https://github.com/cycle/orm/pull/525
- @rincler made their first contribution in https://github.com/cycle/orm/pull/524
- @peldax made their first contribution in https://github.com/cycle/orm/pull/491
- @markinigor made their first contribution in https://github.com/cycle/orm/pull/487
- Full Changelog: https://github.com/cycle/orm/compare/v2.12.3...v2.13.0
v2.12.3
📋 What's Changed
- Handle empty entity collection in BulkLoader without throwing exception by @roxblnfk in https://github.com/cycle/orm/pull/543
- Full Changelog: https://github.com/cycle/orm/compare/v2.12.2...v2.12.3
v2.12.2
📋 What's Changed
- Fix columns mapping in BelongsToMorphedLoader by @roxblnfk in https://github.com/cycle/orm/pull/542
- Full Changelog: https://github.com/cycle/orm/compare/v2.12.1...v2.12.2
v2.12.1
📋 What's Changed
- Fix BelongsToMorphedLoader by @roxblnfk in https://github.com/cycle/orm/pull/541
- Full Changelog: https://github.com/cycle/orm/compare/v2.12.0...v2.12.1
v2.12.0
📋 What's Changed
- Add BelongsToMorphed loader by @roxblnfk in #537
- Now you can load BelongsToMorphed relations using the `Select::load()` method.
- Added Relations Bulk Loader by @roxblnfk in #539
- [Documentation](https://cycle-orm.dev/docs/relation-bulk-loader)
- Full Changelog: https://github.com/cycle/orm/compare/v2.11.1...v2.12.0
v2.11.1
📋 What's Changed
- Fix RefersTo relation by @roxblnfk in https://github.com/cycle/orm/pull/534
- Add PHP 8.5 in CI by @roxblnfk in https://github.com/cycle/orm/pull/536
- Full Changelog: https://github.com/cycle/orm/compare/v2.11.0...v2.11.1
v2.11.0
📋 What's Changed
- Add `unset` behavior by @gam6itko in https://github.com/cycle/orm/pull/517
- Typecast support callable with arguments by @puzzledpolymath in https://github.com/cycle/orm/pull/529
- Add `groupByToDeduplicate` feature by @gam6itko in https://github.com/cycle/orm/pull/528
- Set `ignoreUninitializedRelations` option to `false` by default by @roxblnfk in https://github.com/cycle/orm/pull/530
✨ New Contributors
- @puzzledpolymath made their first contribution in https://github.com/cycle/orm/pull/529
- Full Changelog: https://github.com/cycle/orm/compare/v2.10.1...v2.11.0
2.11.0-RC1Pre-release
📋 What's Changed
- Add `unset` behavior by @gam6itko and @roxblnfk in https://github.com/cycle/orm/pull/517
- Added a new behavior.
- Full Changelog: https://github.com/cycle/orm/compare/v2.10.1...2.11.0-RC1
v1.8.2
📋 What's Changed
- minor fix for php8.1 compatibility by @wezztt in https://github.com/cycle/orm/pull/514
✨ New Contributors
- @wezztt made their first contribution in https://github.com/cycle/orm/pull/514
- Full Changelog: https://github.com/cycle/orm/compare/v1.8.1...v1.8.2
v2.10.1
📋 What's Changed
- Fix a rare bug on selecting nested data by @gam6itko in https://github.com/cycle/orm/pull/512
- Full Changelog: https://github.com/cycle/orm/compare/v2.10.0...v2.10.1
v2.10.0
📋 What's Changed
- Changed behavior of EntityFactory by @roxblnfk in https://github.com/cycle/orm/pull/509
- Explanation:
- > Let's imagine a situation:
- > - We loaded a `User` entity from the database.
- > - We made some changes to the entity (changed some fields) but did not save it to the database.
- > - We requested several `Comment` entoitites from the database with eager loading of their authors (who are `User` entities).
- > - One of the authors of the loaded comments is the `User` from the first point.
- >
- + 9 more
v2.10.0-RC1Pre-release
📋 What's Changed
- Change behavior of EntityFactory by @roxblnfk in https://github.com/cycle/orm/pull/509
- It doesn't overwrite entity fields now
- Full Changelog: https://github.com/cycle/orm/compare/v2.9.3...v2.10.0-RC1
v2.9.3
📋 What's Changed
- Removed "of object" from docBlock in "Cycle\ORM\RepositoryInterface" by @sicet7 in https://github.com/cycle/orm/pull/508
✨ New Contributors
- @sicet7 made their first contribution in https://github.com/cycle/orm/pull/508
- Full Changelog: https://github.com/cycle/orm/compare/v2.9.2...v2.9.3
v2.9.2
📋 What's Changed
- Fix typo from 👿 to UNIX naming by @HenkPoley in https://github.com/cycle/orm/pull/505
- Add metadata for Meta Storm plugin by @roxblnfk in https://github.com/cycle/orm/pull/506
✨ New Contributors
- @HenkPoley made their first contribution in https://github.com/cycle/orm/pull/505
- Full Changelog: https://github.com/cycle/orm/compare/v2.9.1...v2.9.2
v2.9.1
📋 What's Changed
- Beautify phpDoc code examples by @gam6itko in https://github.com/cycle/orm/pull/496
- Fix PHP 8.4 deprecations by @roxblnfk in https://github.com/cycle/orm/pull/501
- Throw Error when a non-public property of an proxy entity is changed by @roxblnfk in https://github.com/cycle/orm/pull/502
- Full Changelog: https://github.com/cycle/orm/compare/v2.9.0...v2.9.1
v2.9.0
📋 What's Changed
- Expose support for multiple `with` on the same relation by @roxblnfk and @gam6itko in #483, #482, #486
- Full Changelog: https://github.com/cycle/orm/compare/v2.8.0...v2.9.0
v2.8.0
📋 What's Changed
- Add method `Repository::forUpdate()` by @msmakouz in #465
- Add JSON typecast by @msmakouz in #464
- Fix phpdoc in Select class; expand return type of `fetchData()` and `fetchAll()` methods by @lotyp and @roxblnfk in #478
- Fix phpdoc for `EntityProviderInterface::get()` by @msmakouz in #474
- Full Changelog: https://github.com/cycle/orm/compare/v2.7.1...v2.8.0
v2.7.1
📋 What's Changed
- Fix inserting order in regular cases by @roxblnfk and @gam6itko in https://github.com/cycle/orm/pull/381
- Full Changelog: https://github.com/cycle/orm/compare/v2.7.0...v2.7.1
