Skip to content

Releases: phpfui/ORM

Clear parameters between validations

20 Jun 01:26
Compare
Choose a tag to compare
  • Invalid parameters could be passed to subsequent validators
  • Phone number cleaning allows spaces as valid characters

Better Primary Key support

17 May 20:42
Compare
Choose a tag to compare

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

12 May 16:05
Compare
Choose a tag to compare
V1.1.10

Code style

Table::insertOrIgnore

08 May 20:27
Compare
Choose a tag to compare
V1.1.9

Table::insertOrIgnore

Delete Children records on delete

05 May 01:42
Compare
Choose a tag to compare
  • 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

02 May 03:38
Compare
Choose a tag to compare

Cast virtual field allows for support of types. Example: Carbon dates.

Group By and Order By field cleaning

30 Apr 19:57
Compare
Choose a tag to compare
  • 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

29 Apr 21:55
Compare
Choose a tag to compare
  • 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

Field Comparison Validators

28 Apr 19:46
Compare
Choose a tag to compare

New validators compare against other record fields:

  • eq_field, Equal to field
  • gt_field, Greater Than field
  • gte_field, Greater Than or Equal to field
  • lt_field, Less Than field
  • lte_field, Less Than or Equal to field
  • neq_field, Not Equal to field

These validators compare against values:

  • equal, Value must be equal
  • not_equal, Value must not be equal

More validators

28 Apr 03:17
Compare
Choose a tag to compare

Added the following validators:

  • starts_with
  • ends_with
  • contains
  • istarts_with (case insensitive)
  • iends_with (case insensitive)
  • icontains (case insensitive)