Skip to content

Releases: scrawler-labs/arca-orm

v4.0.1

24 Nov 11:53
df67215
Compare
Choose a tag to compare
  • fix: check for null before refresh

v4.0.0

11 Oct 08:07
Compare
Choose a tag to compare

What's New ?

Features

  • Eager load modal reaction
  • toArray() and toString() now returns with loaded relations
  • Database factory to build container and Database class
  • refresh() function for model to sync its state if relational models are modified
  • Ability to store arrays and objects directly into database (this is done using serialisation)

Performance

  • Loaded relational models are not loaded again

Security and Stability

  • Using safe version of php function so that Exception is thrown instead of false value being return
  • Force setting of id now throws error
  • Foreign key constraints are applied when saving relational models
  • Unstable static functions are removed
  • Events class is removed as it was causing multiple side effect
  • Dependencies are now properly managed by containers

Testing and Code quality

  • Code now follows phpcs-fixer symfony code guideline
  • Minimised class complexity using traits
  • Code coverage now 100%
  • Passes <75% in mutation testing
  • Passes level 8 phpstan analysis

Full Changelog: v3.4.0...v4.0.0

v3.4.0

06 Oct 00:40
5df9a3d
Compare
Choose a tag to compare
  • Better type hinting
  • Use safe version of built in php function
  • Better tests
  • Update License to MIT

v3.3.0

05 Oct 10:50
Compare
Choose a tag to compare
  • feat : tablesExist and tableExists function
  • fix: handle case where table does not exist

v3.2.0

05 Oct 06:27
Compare
Choose a tag to compare
  • fix : return null instead of bool when no result found

v3.1.1

30 Sep 04:49
Compare
Choose a tag to compare

fix: return false if there is no result

v3.1.0

27 Sep 21:02
Compare
Choose a tag to compare

fix : connection variable is now private

v3.0.0

09 Sep 06:44
Compare
Choose a tag to compare

Full Changelog: v2.1.1...v3.0.0

v3.0.0-beta1

02 Jul 08:58
Compare
Choose a tag to compare
v3.0.0-beta1 Pre-release
Pre-release
  • Updated Doctrine to version 4.x
  • Updated and improved code architecture
  • $db->get() now only returns collection and $db->getOne() is used to get single model
  • Each connection now have a unique uuid
  • useUUID is now part of connection params rather than a separate constructor parameter
  • Better tests and coverage

Full Changelog: v2.1.1...v3.0.0-beta1

v2.1.1

30 Sep 19:45
a077ecc
Compare
Choose a tag to compare

What's Changed

  • fix(deps): update dependency ramsey/uuid to v4.7.4 by @renovate in #30
  • fix(deps): update dependency doctrine/dbal to v3.7.0 by @renovate in #36
  • fix(deps): update dependency loophp/collection to v7.2.1 by @renovate in #35
  • chore(deps): update dependency phpmd/phpmd to v2.14.1 by @renovate in #15
  • chore(deps): update actions/checkout action to v4 by @renovate in #37
  • chore(deps): update dependency pestphp/pest to v2.20.0 by @renovate in #34
  • chore(deps): update dependency phpstan/phpstan to v1.10.36 by @renovate in #33
  • chore(deps): update dependency squizlabs/php_codesniffer to v3.7.2 by @renovate in #17

Full Changelog: v2.1.0...v2.1.1