Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

QueryBuilder.php 617B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Lc\CaracoleBundle\Doctrine;
  3. use Lc\SovBundle\Doctrine\QueryBuilder as SovQueryBuilder;
  4. /**
  5. * class EntityManager.
  6. *
  7. * @author La clic !!!!
  8. */
  9. class QueryBuilder extends SovQueryBuilder
  10. {
  11. public function andWhereMerchant($dqlId, $merchant):self
  12. {
  13. $this->andWhere($dqlId.'.merchant = :merchant');
  14. $this->setParameter('merchant', $merchant);
  15. return $this;
  16. }
  17. public function andWhereSection($dqlId, $section):self
  18. {
  19. $this->andWhere($dqlId.'.section = :section');
  20. $this->setParameter('section', $section);
  21. return $this;
  22. }
  23. }