Releases: brokencube/automatorm
Really need to test things before pushing
Removing Vardump() call!
Continuing previous bug fix
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
1.0.0.1 Fix bug where sql filters on M-M joins were not working!
1.0 Release + Jumps
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)
0.12.1.0 Fix __set to allow standard DateTime objects for datetimes
COUNT_ONLY for collection joins
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
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()
$collection->add() now variadic.
0.10.0.2: Removed "subclass" functionality.
Improved a couple of exception messages. (Hopefully) improved error on invalid join() call.
Minor speed improvement
0.10.0.1 Minor ~2-3% page speed up by caching some deterministic string functi…