Permalink
Browse files

do not confuse model objects

  • Loading branch information...
1 parent 22641f4 commit 3f34cc95827e881c165cf26c21e8abb46d60af15 @d1rk d1rk committed Mar 12, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 models/BaseModel.php
View
@@ -319,7 +319,8 @@ public function resolve($entity, $fields = null) {
}
$res = $model::first($id);
if ($res) {
- $return = $entity->$name = $res;
+ $return = $res;
+ $entity->$name = $res->data();
}
}
}

0 comments on commit 3f34cc9

Please sign in to comment.