diff --git a/src/ORM/Method/ResultSet.php b/src/ORM/Method/ResultSet.php index 54de40b..30358a2 100644 --- a/src/ORM/Method/ResultSet.php +++ b/src/ORM/Method/ResultSet.php @@ -361,7 +361,7 @@ protected function _getTypes($fields) { $types = []; $schema = $this->_schema; - $map = array_keys(\Cake\Database\TypeFactory::map() + ['string' => 1, 'text' => 1, 'boolean' => 1]); + $map = array_keys(\Cake\Database\TypeFactory::getMap() + ['string' => 1, 'text' => 1, 'boolean' => 1]); $typeMap = array_combine( $map, array_map(['Cake\Database\Type', 'build'], $map)