init without trunk

This commit is contained in:
Kevin Adametz 2020-07-09 12:49:32 +02:00
parent ed24ac4994
commit bb809e7233
14652 changed files with 177862 additions and 94817 deletions

View file

@ -0,0 +1,30 @@
<?php
namespace AppBundle\Entity;
/**
* SidebarWidgetRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class TravelCountryRepository extends \Doctrine\ORM\EntityRepository
{
public function getActiveFrontend()
{
$qb = $this->createQueryBuilder('travel_country');
$qb->where('travel_country.active_frontend = 1')
->addOrderBy('travel_country.id', 'ASC');
$results = $qb->getQuery()->getResult();
/* $ret = [];
foreach ($results as $result)
{
if($result->getIsShowAt($site)){
$ret[] = $result;
}
}*/
return $results;
}
}