for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Victoire\Bundle\BusinessEntityBundle\Entity;
use Doctrine\ORM\EntityRepository;
/**
* The BusinessEntity Repository.
*/
class BusinessEntityRepository extends EntityRepository
{
* @param array $widgetType
public function getByAvailableWidgets($widgetType)
return $this->createQueryBuilder('be')
->where('be.availableWidgets LIKE :widgetType')
->setParameter(':widgetType', '%'.$widgetType.'%')
->getQuery()
->execute();
}