Releases: nox7/nox
Releases · nox7/nox
v1.4.2
- Add ModelClass::count(ColumnQuery) to allow utilizing MySQL's COUNT() to fast-count a query's row return.
Usage
$totalUsers = User::count(
columnQuery: (new \Nox\ORM\ColumnQuery())
->where("role","=","Admin"),
);
Without the columnQuery, it would return the count of all User instances in the database.
v1.4.1
v1.4.0
This update removes the necessity of manually interfacing with the Abyss ORM class to perform database operations on ModelClass instances (such as a User). The following methods have been added to all classes that extend from ModelClass
static ModelClass::fetch();
static ModelClass::query();
static ModelClass::saveAll();
public static function fetch(int $keyValue);
public static function query(ColumnQuery $columnQuery, ResultOrder $resultOrder, Pager $pager);
public static function saveAll(array $modelClasses);
v1.4.0-beta6
Add Rewrite class to rewrite a route with a custom status code
v1.4.0-beta5
Repush to attempt to fix Packagist fetch failure
v1.4.0 Beta 4
- Remove restriction on which request methods
Nox\Http\Request::processRequestBody()
can handle.
v1.4.0 Beta 3
- Fix case sensitivity regression on Linux
No longer force lower the request paths
v1.4.0 Beta 2
- Fix bad check on lowered string comparing to uppercase string ("get" == "GET")
- Fix missing check for empty request in Router::route() for when a base is chopped off due to a RouteBase attribute being present
v1.4.0 Beta
Merge pull request #12 from nox7/1.4.0 1.4.0