kirkbushell / eloquence

A drop-in library for certain database functionality in Laravel, that allows for extra features that may never make it into the main project.
MIT License
537 stars 58 forks source link

Checking for null $foreignKey and skipping update. #22

Closed valorin closed 9 years ago

valorin commented 9 years ago

As there may be cases where the foreignKey allows a null value, need to check for a non-null value before attempting to update the count cache.