]> git.mxchange.org Git - friendica.git/blobdiff - src/Database/DBA.php
Merge pull request #9683 from annando/clean-avatar
[friendica.git] / src / Database / DBA.php
index 8b25f617f61195dd903de1a27995903840e417b7..1a7ff3bc541cf2a82e117f00a06d3263f2a1729a 100644 (file)
@@ -776,6 +776,18 @@ class DBA
                return DI::dba()->toArray($stmt, $do_close);
        }
 
+       /**
+        * Cast field types according to the table definition
+        *
+        * @param string $table
+        * @param array  $fields
+        * @return array casted fields
+        */
+       public static function castFields(string $table, array $fields)
+       {
+               return DI::dba()->castFields($table, $fields);
+       }
+
        /**
         * Returns the error number of the last query
         *