Skip to content
Permalink
Browse files

Always return an entity.

  • Loading branch information...
markstory committed Sep 22, 2014
1 parent 3701fd0 commit 6b39c841265dd3c446051c0638d2ca657f496f38
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ORM/Table.php
@@ -958,7 +958,7 @@ public function findOrCreate($search, callable $callback = null) {
if ($callback) {
$callback($entity);
}
return $this->save($entity);
return $this->save($entity) ?: $entity;
}
/**

0 comments on commit 6b39c84

Please sign in to comment.
You can’t perform that action at this time.