mmanos / laravel-metable

A meta package for Laravel 4 models.
MIT License
13 stars 3 forks source link

Changed handling of null values when setting metas #1

Closed dmyers closed 9 years ago

dmyers commented 9 years ago

If you pass in null and a record exists it will unset it by removing the record. If you pass in null and there is no record it will not se the meta.

I think it would be best to not have empty database records when possible for scaling and logically when you see API responses you want to only get real values.

mmanos commented 9 years ago

Nice. I can agree with this. Thanks.