Skip to content

Releases: nox7/nox

v1.4.2

15 Sep 15:44
85dd601
Compare
Choose a tag to compare
  • 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

30 Aug 14:54
8fcd4b0
Compare
Choose a tag to compare
  • Fixes a bug where calling ModelClass::save() on a ModelClass instance would cause the PRIMARY KEY in the MySQL table to be changed

v1.4.0

18 Aug 14:22
865cc0b
Compare
Choose a tag to compare

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

14 Aug 23:50
Compare
Choose a tag to compare

Add Rewrite class to rewrite a route with a custom status code

v1.4.0-beta5

06 Aug 15:44
e607393
Compare
Choose a tag to compare

Repush to attempt to fix Packagist fetch failure

v1.4.0 Beta 4

06 Aug 15:30
e607393
Compare
Choose a tag to compare
  • Remove restriction on which request methods Nox\Http\Request::processRequestBody() can handle.

v1.4.0 Beta 3

22 Jul 17:25
8d165f1
Compare
Choose a tag to compare
  • Fix case sensitivity regression on Linux

No longer force lower the request paths

v1.4.0 Beta 2

21 Jul 17:21
abe249c
Compare
Choose a tag to compare
  • 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

21 Jul 17:11
f81247c
Compare
Choose a tag to compare
Merge pull request #12 from nox7/1.4.0

1.4.0

v1.3.2

19 Jul 16:40
d64a5ca
Compare
Choose a tag to compare
  • Fix 404 routes not working due to new Router update. A new router clone must be made when a 404 is detected