1 | <?php |
||
18 | class CurrencyRepository extends EntityRepository implements RepositoryInterface |
||
|
|||
19 | { |
||
20 | /** |
||
21 | * Finds active currencies. |
||
22 | */ |
||
23 | public function findActive() |
||
34 | |||
35 | /** |
||
36 | * Finds the default currency. |
||
37 | * |
||
38 | * @return null|Currency |
||
39 | */ |
||
40 | public function findDefaultOne() |
||
51 | |||
52 | /** |
||
53 | * Find all available currencies. |
||
54 | */ |
||
55 | public function findAllAvailable() |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function createPaginator(array $criteria = null, array $orderBy = null) |
||
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | public function createNew() |
||
80 | |||
81 | /** |
||
82 | * Checks if currency exists. |
||
83 | * |
||
84 | * @param CurrencyInterface $currency |
||
85 | * |
||
86 | * @return Doctrine\ORM\Query |
||
87 | */ |
||
88 | public function checkIfExists(CurrencyInterface $currency) |
||
103 | } |
||
104 |