silverstripe-framework/src
Nick acb74a8577 Fix $class variable from being clobbered
The $class variable gets overwritten in the function.

This causes error messages to be less helpful. For example if you setup a has_many but forget the has_one on the other side the error will look something like

`[Emergency] Uncaught Exception: No has_one found on class 'SomeObject', the has_many relation from 'SilverStripe\View\ViewableData' to 'SomeObject' requires a has_one on 'SomeObject'`

fixing this gives a more useful error, like

`[Emergency] Uncaught Exception: No has_one found on class 'SomeObject', the has_many relation from 'Page' to 'SomeObject' requires a has_one on 'SomeObject'`
2017-05-29 20:31:09 +12:00
..
conf API Apply default logger to all caches 2017-03-15 15:31:24 +13:00
Control API Add streamable response object 2017-05-23 16:32:29 +12:00
Core Revert injector type hint to Injector 2017-05-25 11:06:48 +12:00
Dev Response to feedback 2017-05-23 13:50:35 +12:00
Forms BUG Fix minor accessors of legacy ->class property 2017-05-25 11:55:12 +12:00
i18n API Consistent use of inst() naming across framework 2017-05-19 14:38:06 +12:00
Logging API Rename services to match FQN of interface / classes 2017-05-16 14:15:49 +12:00
ORM Fix $class variable from being clobbered 2017-05-29 20:31:09 +12:00
Security API Remove Object class 2017-05-23 13:50:35 +12:00
View API Remove Object class 2017-05-23 13:50:35 +12:00