Skip to content

Releases: phpfui/ORM

Better field sanitation

06 Jan 22:41
Compare
Choose a tag to compare

Better sanitation for fields to prevent injections attacks on user supplied fields

Null Assignments

25 Nov 14:54
Compare
Choose a tag to compare
  • Detect null assignment to non nullable fields
  • Better support for default float values of 0.0 (requires regen of Definition classes)

Construct Record from Record

19 Nov 22:14
Compare
Choose a tag to compare

You can construct a record from any other record. If they are of different types, it will only populate the valid fields.

PHP 8.4 Support

23 Oct 00:33
Compare
Choose a tag to compare
  • Support for PHP 8.4
  • Auto increment fields are no longer set to required in validator generation
  • Refactored to reduce line count
  • Assignment of empty related Record now works correctly

Better IN (select statement) logic

11 Jul 14:31
Compare
Choose a tag to compare

Reduced the number of queries to the server for using a SELECT statement for the IN and NOT IN operators.

IN conditions with empty arrays will always return false

10 Jul 19:46
Compare
Choose a tag to compare

To avoid an error from SQL, IN conditions with empty arrays will always return false

Don't Cast Nulls

31 May 19:39
Compare
Choose a tag to compare
  • Null fields were always being casted to the field type. Now the field will be null.
  • Improved documentation

Better Validator::unique logic

08 May 16:01
Compare
Choose a tag to compare
  • Correctly reports the value of the field that is not unique when using additional column constraints
  • Cases the table class correctly for additional column constraints

Enum support in Condition

26 Apr 03:01
Compare
Choose a tag to compare
  • Enums can now be used as values in Condition objects without having to use MyEnum::MY_VALUE->value
    • Example: $condition = new \PHPFUI\ORM\Condition('field', MyEnum::MY_VALUE);
  • Added Table::validateFromTable method to perform record validation before calling updateFromTable

Type Safe Enum support

16 Apr 02:02
Compare
Choose a tag to compare