Skip to content

Releases: devtheorem/phaster

4.0.0

03 Jan 21:18
Compare
Choose a tag to compare

Changed

  • getMap() is no longer abstract and returns an empty array by default, so it is no longer necessary to implement for read-only APIs.
  • If the ID column is returned from getMap(), it is now automatically writable without having to set a writableId flag.
  • getSelectMap() now returns an empty array by default (rather than the getMap() value), so it is no longer necessary to implement this method just to prevent selecting write-only properties when using getSelectProps().

Important

When upgrading, remove readonly ID properties from getMap(), and implement getSelectMap() if any writable property is not returned by getSelectProps().

Removed

  • Unnecessary getDefaultValues() method. Defaults can be set via processValues() instead.
  • writableId bool property.

3.0.0

29 Oct 22:30
Compare
Choose a tag to compare

Added

  • Official support for PostgreSQL.

Changed

  • Moved to DevTheorem namespace.
  • Phaster now validates that property values are scalar or null when inserting and updating rows.
  • PHP 8.1+ is now required.

Removed

  • All previously deprecated methods.

2.9.0

10 Sep 20:16
Compare
Choose a tag to compare

Added

  • processValues() now allows setting the ID of an existing row on the returned object, in which
    case a new row will not be inserted, and the specified ID will be returned in the list of row IDs.