Fixed unknown variable

This commit is contained in:
Marcin Kurczewski 2014-09-21 18:30:29 +02:00
parent 1d72cec84b
commit 881d2a6b38

View file

@ -43,7 +43,7 @@ class PostService
if (!$post) if (!$post)
$post = $this->postDao->findById($postNameOrId); $post = $this->postDao->findById($postNameOrId);
if (!$post) if (!$post)
throw new \InvalidArgumentException('Post with name "' . $postName . '" was not found.'); throw new \InvalidArgumentException('Post with name "' . $postNameOrId . '" was not found.');
return $post; return $post;
}; };
return $this->transactionManager->rollback($transactionFunc); return $this->transactionManager->rollback($transactionFunc);