Invalid method calls to ORM cause recursion

This is a fix for the magic method in ORM to avoid recursion errors when calling a magic function that does not exist.