Fix infinite loop that occurs when an `data\Entity` class is used as `data\Entity::_model`.
Merge pull request #782 from jails/bug/entity-magic-call

Fix infinite loop that occurs when an `data\Entity` class is used as `data\Entity::_model`.