change find method on some request

This commit is contained in:
Manuel Raynaud
2013-09-11 09:13:42 +02:00
parent 06bb1d0a39
commit 9002484814

View File

@@ -110,7 +110,7 @@ class ModelCriteriaTools
{
// If a lang has been requested, find the related Lang object, and get the locale
if ($requestedLangId !== null) {
$localeSearch = LangQuery::create()->findOneById($requestedLangId);
$localeSearch = LangQuery::create()->findPk($requestedLangId);
if ($localeSearch === null) {
throw new \InvalidArgumentException(sprintf('Incorrect lang argument given : lang ID %d not found', $requestedLangId));