Inital commit
This commit is contained in:
@@ -16,4 +16,14 @@ use Thelia\Model\Base\LangQuery as BaseLangQuery;
|
||||
*/
|
||||
class LangQuery extends BaseLangQuery
|
||||
{
|
||||
} // LangQuery
|
||||
public function findByIdOrLocale($search)
|
||||
{
|
||||
$find = $this->findPk($search);
|
||||
|
||||
if (null === $find) {
|
||||
$find = $this->findOneByLocale($search);
|
||||
}
|
||||
|
||||
return $find;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user