Initial commit
This commit is contained in:
29
core/lib/Thelia/Model/LangQuery.php
Normal file
29
core/lib/Thelia/Model/LangQuery.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace Thelia\Model;
|
||||
|
||||
use Thelia\Model\Base\LangQuery as BaseLangQuery;
|
||||
|
||||
/**
|
||||
* Skeleton subclass for performing query and update operations on the 'lang' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* You should add additional methods to this class to meet the
|
||||
* application requirements. This class will only be generated as
|
||||
* long as it does not already exist in the output directory.
|
||||
*
|
||||
*/
|
||||
class LangQuery extends BaseLangQuery
|
||||
{
|
||||
public function findByIdOrLocale($search)
|
||||
{
|
||||
$find = $this->findPk($search);
|
||||
|
||||
if (null === $find) {
|
||||
$find = $this->findOneByLocale($search);
|
||||
}
|
||||
|
||||
return $find;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user