Skip to content

Commit

Permalink
Fix toInflateArray for joined columns
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Jul 24, 2016
1 parent 4943f0a commit 932d342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BaseModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -1902,7 +1902,7 @@ public function toInflatedArray()
$schema = $this->getSchema();
foreach ($this->_data as $k => $v) {
$col = $schema->getColumn($k);
if ($col->isa) {
if ($col && $col->isa) {
$data[ $k ] = $col->inflate($v, $this);
} else {
$data[ $k ] = $v;
Expand Down

0 comments on commit 932d342

Please sign in to comment.