This repository has been archived by the owner on Jul 16, 2023. It is now read-only.
New hooks, exceptions and relationsData array
Pre-release
Pre-release
- addition of before/afterSave, Update, Delete, Validate hooks, that are called statically with the model being received as only argument
- addition of
Ardent::throwOnFind
boolean property to forcefully throw exceptions when models are not found (forcing usage offindOrFail
) - addition of
InvalidModelException
, enabled byArdent::throwOnValidate
- addition of
Ardent::relationsData
static attribute that makes it much easier to define relations, cleaning the clutter in models with many relationships - cleaner code, following code style rules (almost PSR-2, except for braces)