mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-07-01 00:49:33 +02:00
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'` |
||
---|---|---|
.. | ||
conf | ||
Control | ||
Core | ||
Dev | ||
Forms | ||
i18n | ||
Logging | ||
ORM | ||
Security | ||
View |