Browse Source

Fix for error caused by belongsToMany query with a formatter on the join query.

Walther Lalk 11 years ago
parent
commit
587de14e70
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ORM/Association.php

+ 1 - 1
src/ORM/Association.php

@@ -660,7 +660,7 @@ abstract class Association
     {
         $formatters = $surrogate->formatResults();
 
-        if (!$formatters) {
+        if (!$formatters || empty($options['propertyPath'])) {
             return;
         }