Skip to content

Releases: phpfui/ORM

Correct default for migration::run field

26 Feb 15:33
Compare
Choose a tag to compare

Migrations will now run correctly on MySQL and MariaDB

Updated Internals - Rerun \PHPFUI\ORM\Tool\Generate\CRUD

13 Feb 22:14
Compare
Choose a tag to compare

Internal refactor for typed field definitions.

WARNING: You must rerun the \PHPFUI\ORM\Tool\Generate\CRUD class against your database. See scripts/generateCRUD.php for an example. No other changes will be needed.

Fixed support for nullable CURRENT_TIMESTAMP and CURRENT_DATE defaults.

Better support for Virtual fields

29 Jan 15:03
Compare
Choose a tag to compare
  • Virtual fields now support null better.
  • Enums set to null default to 0.
  • Cast will not convert null.

Fix for Enums in setFrom

27 Jan 16:41
Compare
Choose a tag to compare

setFrom method now calls __set for custom setters.

Allow * for addSelect()

16 Jan 04:13
Compare
Choose a tag to compare
  • '*' is a valid field for addSelect()
  • Null defaults to zero when assigning to an Enum

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.