您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

AddressRepositoryQuery.php 654B

3 年前
3 年前
3 年前
3 年前
3 年前
3 年前
1234567891011121314151617181920212223
  1. <?php
  2. namespace Lc\CaracoleBundle\Repository\Address;
  3. use Knp\Component\Pager\PaginatorInterface;
  4. use Lc\CaracoleBundle\Repository\MerchantRepositoryQueryTrait;
  5. use Lc\SovBundle\Model\User\UserInterface;
  6. use Lc\SovBundle\Repository\AbstractRepositoryQuery;
  7. class AddressRepositoryQuery extends AbstractRepositoryQuery
  8. {
  9. use MerchantRepositoryQueryTrait;
  10. public function __construct(AddressRepository $repository, PaginatorInterface $paginator)
  11. {
  12. parent::__construct($repository, 'address', $paginator);
  13. }
  14. public function filterByUser(UserInterface $user)
  15. {
  16. return $this->andWhereEqual('user', $user);
  17. }
  18. }