Browse Source

Update usage of deprecated method.

ADmad 7 years ago
parent
commit
db0e253cdf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ORM/ResultSet.php

+ 1 - 1
src/ORM/ResultSet.php

@@ -448,7 +448,7 @@ class ResultSet implements ResultSetInterface
     {
     {
         $types = [];
         $types = [];
         $schema = $table->getSchema();
         $schema = $table->getSchema();
-        $map = array_keys((array)Type::map() + ['string' => 1, 'text' => 1, 'boolean' => 1]);
+        $map = array_keys((array)Type::getMap() + ['string' => 1, 'text' => 1, 'boolean' => 1]);
         $typeMap = array_combine(
         $typeMap = array_combine(
             $map,
             $map,
             array_map(['Cake\Database\Type', 'build'], $map)
             array_map(['Cake\Database\Type', 'build'], $map)