Deprecate now-duplicated logic in ViewableData::castingHelper()

This commit is contained in:
Loz Calver 2015-10-07 15:16:36 +01:00
parent 7a81372294
commit 0965226a15
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}