Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Fixed known issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
debabratapatra committed Apr 8, 2016
1 parent bf498f3 commit cddd83c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Database/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -364,16 +364,16 @@ protected function getFMFieldValues($fmRecord = array(), $columns = '')
return $eloquentRecord;
}

// Assign all fields
if (in_array('*', $columns)) {
$columns = $this->fmFields;
}

// Assign indivisual fields
if (is_string($columns)) {
$columns = [$columns];
}

// Assign all fields
if (in_array('*', $columns)) {
$columns = $this->fmFields;
}

// Get field-value pairs
foreach ($columns as $column) {
$eloquentRecord[$column] = $this->getIndivisualFieldValues($fmRecord, $column, $this->fmFields);
Expand Down

0 comments on commit cddd83c

Please sign in to comment.