Skip to content
This repository was archived by the owner on May 12, 2022. It is now read-only.

Releases: brokencube/automatorm

Really need to test things before pushing

30 Sep 10:15
Compare
Choose a tag to compare

Continuing previous bug fix

30 Sep 10:10
Compare
Choose a tag to compare
Major bugfix - follow on from previous commit.

Needed to rewrite filter column names that contained prefixes when used in M-M joins

Major M-M filtered join bugfix

30 Sep 09:42
Compare
Choose a tag to compare
1.0.0.1

Fix bug where sql filters on M-M joins were not working!

1.0 Release + Jumps

16 Sep 14:51
Compare
Choose a tag to compare

1.0 release stable.
Added in new feature: Jumps. Jumps allow you to traverse the database without creating intermediate objects.

$blog->blog_comments->account->address would create a host of BlogComment and Account objects that are then not used, returning a Collection of Address objects

$blog->_->blog_comments->account->address->_ will skip creating these intermediate objects, and instead issue one SQL query doing all the joins from Blog to Address in one step, returning the same Collection.

Allow DateTime objects for datetimes (instead of Orm\Time)

09 Sep 16:20
Compare
Choose a tag to compare
0.12.1.0

Fix __set to allow standard DateTime objects for datetimes

COUNT_ONLY for collection joins

28 Aug 10:13
Compare
Choose a tag to compare

Model::COUNT_ONLY flag can now be added to filtered joins on collection objects.

E.g. $project->pitch->identity([], Model::COUNT_ONLY); now works

Also potentially fixed some issues with filtered joins? Was it even working before?

Filter prefixes & COUNT_ONLY flags

27 Aug 16:10
Compare
Choose a tag to compare

Updated $collection->filter to use the same prefix comparitors as queries
$objects->filter(['!id' => $filtered_id]) is the same as $objects->not(['id' => $filtered_id])

Foreign key joins can now take a COUNT_ONLY flag to only return the number of matching objects without the overhead of creating Model objects.

$object->foreign_key([], Model::COUNT_ONLY) returns the number of ForeignKey objects that point at this model.

Improvements to $collection->add()

16 Jun 14:17
Compare
Choose a tag to compare

$collection->add() now variadic.

0.10.0.2: Removed "subclass" functionality.

27 May 11:20
Compare
Choose a tag to compare
Improved a couple of exception messages.
(Hopefully) improved error on invalid join() call.

Minor speed improvement

15 May 14:08
Compare
Choose a tag to compare
0.10.0.1

Minor ~2-3% page speed up by caching some deterministic string functi…