Added support for passing an Eloquent Collection to sync() when inserting on a many-to-many relationship instead of just an array of IDs
Small change to follow Laravel coding style
Use modelKeys to retrieve relation IDs correctly instead of incorrect ->otherKey
Checks if a model is dirty
Replace strlen() with is_null()
use ===
Add events firing in transaction.

Signed-off-by: Kevin Simard <kesimard@outlook.com>
Model hydrate and hydrateRaw methods
cleaning up a few things.
fixing tests.
Merge branch '4.1' of https://github.com/kesimard/framework into kesimard-4.1
cleaning up some code.
Lower case the array keys when doing aggregate.
Fix nested relations with subset names.
Remove unnecessary check.
Make Model::hydrate's first argument mandatory
Merge pull request #3797 from lucasmichot/feature/dirty

[PROPOSAL] Checks if a model is dirty
Cleaning up some code.
Working on cleaning up some code.
Fix conflicts.