Releases: devtheorem/phaster
Releases · devtheorem/phaster
4.0.0
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 awritableId
flag. getSelectMap()
now returns an empty array by default (rather than thegetMap()
value), so it is no longer necessary to implement this method just to prevent selecting write-only properties when usinggetSelectProps()
.
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 viaprocessValues()
instead. writableId
bool property.
3.0.0
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
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.