Releases: phpfui/ORM
Releases · phpfui/ORM
Correct default for migration::run field
Updated Internals - Rerun \PHPFUI\ORM\Tool\Generate\CRUD
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
- Virtual fields now support null better.
- Enums set to null default to 0.
- Cast will not convert null.
Fix for Enums in setFrom
setFrom method now calls __set for custom setters.
Allow * for addSelect()
- '*' is a valid field for addSelect()
- Null defaults to zero when assigning to an Enum
Better field sanitation
Better sanitation for fields to prevent injections attacks on user supplied fields
Null Assignments
- 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
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
- 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
Reduced the number of queries to the server for using a SELECT statement for the IN and NOT IN operators.