From 74b69085320c1d2b0b5713b86cae325bc20a0aed Mon Sep 17 00:00:00 2001 From: Antonio Almeida Date: Sun, 7 Jan 2024 22:00:24 +0000 Subject: [PATCH] Deprecate `setFromDb()` method --- src/app/Library/CrudPanel/Traits/AutoSet.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/Library/CrudPanel/Traits/AutoSet.php b/src/app/Library/CrudPanel/Traits/AutoSet.php index 3460ac6311..5a71b1104d 100644 --- a/src/app/Library/CrudPanel/Traits/AutoSet.php +++ b/src/app/Library/CrudPanel/Traits/AutoSet.php @@ -5,6 +5,10 @@ trait AutoSet { /** + * @deprecated v6.5.2 + * The `setFromDb` method should not be used. + * Please use the `addColumn`/`addField` methods instead. + * * For a simple CRUD Panel, there should be no need to add/define the fields. * The public columns in the database will be converted to be fields. *