Skip to content

Commit

Permalink
Update usage of deprecated method.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jul 26, 2018
1 parent cd9f495 commit db0e253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/ResultSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ protected function _getTypes($table, $fields)
{
$types = [];
$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(
$map,
array_map(['Cake\Database\Type', 'build'], $map)
Expand Down

0 comments on commit db0e253

Please sign in to comment.