Make the 'belongsTo' method compatible with Laravel 4.1.*.