Skip to content
Permalink
Browse files

Update classes to use new method.

  • Loading branch information...
markstory committed Jun 12, 2013
1 parent a1b3ebb commit ccd54c9a776204458a923756547fd9aedc4b93ef
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/Cake/ORM/Query.php
  2. +1 −1 lib/Cake/ORM/ResultSet.php
@@ -117,7 +117,7 @@ public function addDefaultTypes(Table $table) {
$schema = $table->schema();
$fields = [];
foreach ($schema->columns() as $f) {
$fields[$f] = $fields[$alias . '.' . $f] = $schema->column($f)['type'];
$fields[$f] = $fields[$alias . '.' . $f] = $schema->columnType($f);
}
$this->defaultTypes($this->defaultTypes() + $fields);
@@ -257,7 +257,7 @@ protected function _castValues($table, $values) {
if (empty($this->types[$alias])) {
$schema = $table->schema();
foreach ($schema->columns() as $col) {
$this->types[$alias][$col] = Type::build($schema->column($col)['type']);
$this->types[$alias][$col] = Type::build($schema->columnType($col));
}
}

0 comments on commit ccd54c9

Please sign in to comment.
You can’t perform that action at this time.