diff --git a/src/RowCollection.php b/src/RowCollection.php index 286a8af..9e035f0 100644 --- a/src/RowCollection.php +++ b/src/RowCollection.php @@ -142,7 +142,7 @@ public function __set($name, $value) } //Join the relations and rows - self::join($table, $this->rows, $value->getTable(), $value, $relation[1]); + self::join($table, $this->rows, $value->getTable(), $value, $relation); $this->loadedRelations[] = $name; }