Skip to content

Commit

Permalink
Do not forget the target table column types
Browse files Browse the repository at this point in the history
  • Loading branch information
dakota committed Aug 15, 2016
1 parent c381dbe commit 17f9d13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ORM/Association/BelongsToMany.php
Expand Up @@ -1272,7 +1272,8 @@ protected function _buildQuery($options)
$query
->where($this->junctionConditions())
->select($joinFields)
->defaultTypes($types);
->defaultTypes($types)
->addDefaultTypes($this->target());

$query
->eagerLoader()
Expand Down

0 comments on commit 17f9d13

Please sign in to comment.