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

Fix issue where relations with camel case #65

Closed valorin closed 7 years ago

valorin commented 7 years ago

Issue occurs when a relation has camel case, and isset() is called. It returns false as the key is converted to snake case.

For example $model->relatedModel is checked as $model->related_model.