Skip to content

Releases: phpfui/ORM

insertOrUpdate does not zero primary key on update

19 Oct 15:11
Compare
Choose a tag to compare
  • insertOrUpdate no longer sets the primary key of the updated record to zero.
  • Better RelatedRecord class to accommodate non-standard naming conventions with the ability to pass the field to use.

Construct Record from DataObject

30 Sep 19:37
Compare
Choose a tag to compare
  • Provide an easy way to convert an untyped DataObject to a typed Record

Not (!) operator for validators

01 Aug 19:52
Compare
Choose a tag to compare
  • Use the Not (!) operator in front of any validation rule to negate it. Includes new translations for ! operator.
  • Cursors now use a zero based index to match arrays (instead of one based)
  • PHPStan Level 6

OR operator on validations

17 Jul 20:17
Compare
Choose a tag to compare

OR Operator for Validations
You can validate a field if any one of the validators passes. Use the vertical bar (|) to separate validators. If one of the validators passes, then the the field is valid.

String primary keys are not type changed

28 Jun 15:50
Compare
Choose a tag to compare

String primary keys are not type changed due to MySQL not caring about types.

getPrimaryKeys returns simple array

28 Jun 15:41
Compare
Choose a tag to compare

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

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