mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Deprecate now-duplicated logic in ViewableData::castingHelper()
This commit is contained in:
parent
7a81372294
commit
0965226a15
@ -287,6 +287,12 @@ class ViewableData extends Object implements IteratorAggregate {
|
||||
*/
|
||||
public function castingHelper($field) {
|
||||
if($this->hasMethod('db') && $fieldSpec = $this->db($field)) {
|
||||
Deprecation::notice(
|
||||
'4.0',
|
||||
'ViewableData::castingHelper() will no longer extract casting information "db". Please override
|
||||
castingHelper in your ViewableData subclass.',
|
||||
Deprecation::SCOPE_GLOBAL
|
||||
);
|
||||
return $fieldSpec;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user