Skip to content

Add strict option for save()

Choose a tag to compare

@dereuromark dereuromark released this 03 Nov 18:39
· 467 commits to master since this release

save() can now be called with 'strict' option to throw an exception instead of returning false.
This can help to catch silent non-saves where you would otherwise manually wrap it with exception handling everywhere.
E.g. in a CLI script:

$this->TableName->save($entityName, ['strict' => true]);

Also:

  • NullableBehavior for better data consistency added.
  • YearType added for Forms and dealing with year only fields.
  • CookieHelper added as convenience wrapper for the View layer.