Commit: f956b849514e317a8c09337bfb5b0678eda73dcf
Author: alkemann | Date: 2011-05-19 14:07:46 +0200
diff --git a/libraries/lithium/data/collection/RecordSet.php b/libraries/lithium/data/collection/RecordSet.php
index 4614786..b01b506 100644
--- a/libraries/lithium/data/collection/RecordSet.php
+++ b/libraries/lithium/data/collection/RecordSet.php
@@ -335,7 +335,9 @@ class RecordSet extends \lithium\data\Collection {
$main = $record;
continue;
}
-
+ if (!isset($relMap[$name])) {
+ continue;
+ }
if ($relMap[$name]['type'] != 'hasMany') {
$dataMap[$name] = $record;
continue;