init without trunk
This commit is contained in:
parent
ed24ac4994
commit
bb809e7233
14652 changed files with 177862 additions and 94817 deletions
|
|
@ -1,30 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace AppBundle\Entity;
|
||||
|
||||
/**
|
||||
* SidebarWidgetRepository
|
||||
*
|
||||
* This class was generated by the Doctrine ORM. Add your own custom
|
||||
* repository methods below.
|
||||
*/
|
||||
class SidebarWidgetRepository extends \Doctrine\ORM\EntityRepository
|
||||
{
|
||||
|
||||
public function findWidgetsBy($site)
|
||||
{
|
||||
$qb = $this->createQueryBuilder('sidebar_widget');
|
||||
$qb->where('sidebar_widget.active = 1')
|
||||
->addOrderBy('sidebar_widget.pos', 'ASC');
|
||||
$results = $qb->getQuery()->getResult();
|
||||
|
||||
$ret = [];
|
||||
foreach ($results as $result)
|
||||
{
|
||||
if($result->getIsShowAt($site)){
|
||||
$ret[] = $result;
|
||||
}
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue