Skip to content

Releases: flightphp/active-record

v0.4.9

30 Jul 01:28
3b52872
Compare
Choose a tag to compare

What's Changed

  • fixed duplicated sql syntax if join called twice. by @n0nag0n in #20

Full Changelog: v0.4.8...v0.4.9

v0.4.8

04 Jul 15:41
f4b6d70
Compare
Choose a tag to compare

What's Changed

  • if you pass an unknown method to ActiveRecord it will pass it to the database connection by @n0nag0n in #18

Full Changelog: v0.4.7...v0.4.8

v0.4.7

26 May 04:54
Compare
Choose a tag to compare

What's Changed

  • There was an unseen merge conflict with spaces vs tabs that caused RecordCommand to....feel very sad.

Full Changelog: v0.4.6...v0.4.7

v0.4.6

26 May 00:09
Compare
Choose a tag to compare

What's Changed

  • Added new runway command for ActiveRecord. Ex: runway make:record users by @n0nag0n

Full Changelog: v0.4.5...v0.4.6

v0.4.5

22 May 05:06
dcfe6ec
Compare
Choose a tag to compare

What's Changed

  • Fix for table prefix being supplied automatically by @n0nag0n in #16

Full Changelog: v0.4.4...v0.4.5

v0.4.4

19 May 20:41
94fd5cd
Compare
Choose a tag to compare

What's Changed

  • fix: beforeUpdate & beforeSave is not working by @Billtec in #13
  • Fixes some flawed logic in the events with update/save by @n0nag0n in #14

New Contributors

Full Changelog: v0.4.3...v0.4.4

v0.4.3

07 May 15:35
e90cf11
Compare
Choose a tag to compare

What's changed?

  • Fixed but where isHydrated is not set to false when a record is reset() #10 - Thanks @starfishpatkhoo

Full Changelog: v0.4.2...v0.4.3

v0.4.2

27 Apr 13:14
96c892c
Compare
Choose a tag to compare

What's Changed?

  • Several bug fixes
    • insert() was not marking the record as hydrated
    • insert() was assuming that all primary keys were ints (or rowids)
    • Redid some logic on save() to check for a primary key if supplied, and also a hydrated record. It was improperly checking for insert before.
  • Now you can use text based primary keys! You just need to supply the key before the insert takes place either by assigning it to the record $MyRecord->my_text_pk or in a beforeInsert() method.

Full Changelog: v0.4.1...v0.4.2

v0.4.1

12 Mar 16:02
4ef962a
Compare
Choose a tag to compare

What's Changed

  • There was an issue if you named a relation something like 'group' it would throw a weird non-helpful error that would make you triage the bug for a while.
  • You can now set the database connection (for instance in a long running cron and you need to refresh the connection)
  • You can now evaluate the the SQL that was compiled with $Record->getBuiltSql() after your method has run.
  • There was a bug introduced with __isset() being created where the $this->join property was being dynamically set.

Full Changelog: v0.4.0...v0.4.1

v0.4.0

10 Mar 05:00
e6df151
Compare
Choose a tag to compare

What's Changed

  • added isDirty(), copyFrom(), isHydrated(), and cascading relation updates by @n0nag0n in #7

Full Changelog: v0.3.2...v0.4.0