Releases: atrehhoff/database
Releases · atrehhoff/database
v6.1.0
- Added JsonSerializable interface to Database\Collection and Database\Entity for native JSON serialization support.
- Implemented jsonSerialize() method in Collection and Entity to enable JSON encoding of collections and entities.
- Improved Database\Connection to support multiple named singleton instances via an $alias parameter.
- Added support for passing arguments to Entity::new() for flexible instantiation.
- Improved Entity::find() to handle null results gracefully.
- Improved Entity::search() to auto-generate search expressions from criteria if none are provided.
- Added a guard in Entity::delete() to prevent deletion of non-existing entities.
- Improved typehints and docblocks for clarity and consistency.
- Minor code style and formatting improvements in UuidV4 and UuidV7 traits.
- Handle empty arrays being passed for IN queries.
- Support collections for IN queries.
- Update tests.
Full Changelog: v5.5.0...v6.1.0
v5.5.0
- Allow manually setting primary key using set()
- Internal re-structure and maintenance release.
Full Changelog: v5.4.0...v5.5.0
v5.4.0
- Saving entities only updates set data, instead of loaded, to help mitigate race-conditions.
- New methods: Statement::getCollection() and Statement::getIterator()
- Added optional 'clause' parameter to search methods.
Full Changelog: v5.3.0...v5.4.0
v5.2.1
- Error from v5.2.0: Fix calling static methods in non-static context.
- Updatred documentation.
- Remove unused method.
Full Changelog: v5.2.0...v5.2.1
v5.2.0
- Primary key is now part of data array.
- New method Database\EntityType::insert();
- Setting charset is now part of DSN construction.
Full Changelog: v5.1.1...v5.2.0
v5.1.1
- Maintenance update.
- PHP8.3 compatibility.
- Minor performance optimizations.
Full Changelog: v5.1.0...v5.1.1
v5.0.0
- This update is backwards incompatible with previous methhods of Entity::from();
- Coding standards update.
- Return types update.
- New instance cache.
Full Changelog: v4.0.0...v5.0.0
v4.0.0
This release is backwards incompatible
- Collections now used for select'ive queries.
- Entity::id(); wrongfully returning ID.
- Table whitelisting
- Collection tests
- Code formatting
- Performance updates
- Updating README documentation
Full Changelog: v3.2.2...v4.0.0
v3.2.2
First release in a long while
Do not use older version.
Full Changelog: v3.2.1...v3.2.2