active-record

Micro Active Record library in PHP, supports chain calls, events, and relations.

MIT License

Downloads
376
Stars
7

Bot releases are hidden (Show)

active-record - v0.4.9 Latest Release

Published by n0nag0n 3 months ago

What's Changed

Full Changelog: https://github.com/flightphp/active-record/compare/v0.4.8...v0.4.9

active-record - v0.4.8

Published by n0nag0n 4 months ago

What's Changed

Full Changelog: https://github.com/flightphp/active-record/compare/v0.4.7...v0.4.8

active-record - v0.4.7

Published by n0nag0n 5 months ago

What's Changed

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

Full Changelog: https://github.com/flightphp/active-record/compare/v0.4.6...v0.4.7

active-record - v0.4.6

Published by n0nag0n 5 months ago

What's Changed

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

Full Changelog: https://github.com/flightphp/active-record/compare/v0.4.5...v0.4.6

active-record - v0.4.5

Published by n0nag0n 5 months ago

What's Changed

Full Changelog: https://github.com/flightphp/active-record/compare/v0.4.4...v0.4.5

active-record - v0.4.4

Published by n0nag0n 5 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/flightphp/active-record/compare/v0.4.3...v0.4.4

active-record - v0.4.3

Published by n0nag0n 5 months ago

What's changed?

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

Full Changelog: https://github.com/flightphp/active-record/compare/v0.4.2...v0.4.3

active-record - v0.4.2

Published by n0nag0n 6 months ago

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: https://github.com/flightphp/active-record/compare/v0.4.1...v0.4.2

active-record - v0.4.1

Published by n0nag0n 7 months ago

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: https://github.com/flightphp/active-record/compare/v0.4.0...v0.4.1

active-record - v0.4.0

Published by n0nag0n 7 months ago

What's Changed

Full Changelog: https://github.com/flightphp/active-record/compare/v0.3.2...v0.4.0

active-record - v0.3.2

Published by n0nag0n 8 months ago

  • Fixed bug with assigning null to a value.

Full Changelog: https://github.com/flightphp/active-record/compare/v0.3.1...v0.3.2

active-record - v0.3.1

Published by n0nag0n 8 months ago

What's Changed?

  • Fixed bug where beforeInsert() events didn't fire at the correct time.

Full Changelog: https://github.com/flightphp/active-record/compare/v0.3.0...v0.3.1

active-record - v0.3.0

Published by n0nag0n 8 months ago

What's Changed?

  • Changed clearData() to reset() with an additional param to clear out query data as well.
  • Changed delete() to handle multiple records at the same time.
  • Changed default behavior that after a query executes, the query data is reset (all the where conditions and such)

Full Changelog: https://github.com/flightphp/active-record/compare/v0.2.4...v0.3.0

active-record - v0.2.4

Published by n0nag0n 8 months ago

  • Added attribute so that jsonSerialize() wasn't angry in PHP8+

Full Changelog: https://github.com/flightphp/active-record/compare/v0.2.3...v0.2.4

active-record - v0.2.3

Published by n0nag0n 8 months ago

What's Changed?

  • Fixed bug with single rows returning false instead of an empty object (helps reduce a lot of isset()'s in your code)
  • Corrected error with readme example
  • Moved around some code so that if you needed to debug a variable, it will not have a lot of noisy output.
  • changed to psr12 coding style by @n0nag0n in https://github.com/flightphp/active-record/pull/5

Full Changelog: https://github.com/flightphp/active-record/compare/v0.2.2...v0.2.3

active-record - Version 0.2.2

Published by n0nag0n 9 months ago

What's Changed

Full Changelog: https://github.com/flightphp/active-record/compare/v0.2.1...v0.2.2

active-record - Version 0.2.1

Published by n0nag0n 9 months ago

A few mysqli related bug fixes

active-record - Version 0.2.0

Published by n0nag0n 9 months ago

What's Changed

Full Changelog: https://github.com/flightphp/active-record/compare/v0.1.1...v0.2.0

active-record - Version 0.1.1

Published by n0nag0n 9 months ago

  • Added onConstruct event for easy PDO connection creation (and other things)
active-record - Version 0.1.0

Published by n0nag0n 9 months ago

First release!