From 0965226a15b1ee40159122cc925ff6637139fd49 Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Wed, 7 Oct 2015 15:16:36 +0100 Subject: [PATCH] Deprecate now-duplicated logic in ViewableData::castingHelper() --- view/ViewableData.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/view/ViewableData.php b/view/ViewableData.php index 982b9440c..c65e88d26 100644 --- a/view/ViewableData.php +++ b/view/ViewableData.php @@ -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; }