Skip to content

v6.1.0

Latest

Choose a tag to compare

@atrehhoff atrehhoff released this 07 Aug 21:02
  • 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