fix camel columns

pull/35/head
Ondřej Hruška 6 years ago
parent 93f28e38ed
commit c0bc64a2e7
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 2
      app/Models/Revision.php

@ -46,7 +46,7 @@ class Revision extends BaseModel
$selects = $withId ? ["data->>'_id' as _id"] : [];
foreach ($columns as $col) {
$selects[] = "data->>'$col->id' as " . ($named ? $col->name : $col->id);
$selects[] = "data->>'$col->id' as \"" . ($named ? $col->name : $col->id)."\"";
}
return $this->rows()->select([])->selectRaw(implode(', ', $selects));

Loading…
Cancel
Save