Releases: phpfui/ORM
Releases · phpfui/ORM
String primary keys are not type changed
String primary keys are not type changed due to MySQL not caring about types.
getPrimaryKeys returns simple array
getPrimaryKeys() now returns a simple array containing just the primary key fields and not an associative array index by field names.
Definition namespace will need to be regenerated.
Clear parameters between validations
- Invalid parameters could be passed to subsequent validators
- Phone number cleaning allows spaces as valid characters
Better Primary Key support
This release requires models to be regenerated.
- Better Primary Key support
- Better find logic for strings
- Improved duplicate row deletion for migrations
save() method and updated docs
V1.1.10 Code style
Table::insertOrIgnore
V1.1.9 Table::insertOrIgnore
Delete Children records on delete
- Children defined using the Children class will automatically be deleted when the parent is deleted.
- This is a recursive call so the entire child tree will be deleted.
- Set $deleteChildren static field to false in the Record to disable.
Cast Virtual Field
Cast virtual field allows for support of types. Example: Carbon dates.
Group By and Order By field cleaning
- Clean group by and order by field names, as they can not use placeholders, to help prevent injection attacks
- Migration testing
- Better default field generation
Mass insert for Table
- Implemented Table::insert(array[\PHPFUI\ORM\Record]) for mass inserts
- RelatedRecords are now settable if they have the correct type on assignment
- Improved Generate\CRUD to only create docblock for defined related records
- Update docs