@@ -13,7 +13,6 @@ |
||
13 | 13 | use hiqdev\yii\DataMapper\expressions\CallExpression; |
14 | 14 | use hiqdev\yii\DataMapper\expressions\HstoreExpression; |
15 | 15 | use hiqdev\yii\DataMapper\components\EntityManagerInterface; |
16 | -use hiqdev\yii\DataMapper\query\Specification; |
|
17 | 16 | use hiqdev\yii\DataMapper\repositories\BaseRepository; |
18 | 17 | use hiqdev\php\billing\charge\Charge; |
19 | 18 | use hiqdev\php\billing\charge\ChargeFactoryInterface; |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | /** |
31 | 31 | * @param $rows |
32 | - * @param $sourceKey |
|
32 | + * @param string $sourceKey |
|
33 | 33 | * @return static |
34 | 34 | */ |
35 | 35 | public static function fromRows($rows, $sourceKey) |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | /** |
61 | 61 | * @param EntityInterface[] $entities |
62 | 62 | * @param string $key the attribute name in $entity that represent this relation |
63 | - * @param string $entityKey |
|
63 | + * @param string $entityIdKey |
|
64 | 64 | * @return $this |
65 | 65 | */ |
66 | 66 | public function fill($entities, $key, $entityIdKey) |
@@ -77,6 +77,9 @@ discard block |
||
77 | 77 | return $this; |
78 | 78 | } |
79 | 79 | |
80 | + /** |
|
81 | + * @param string $relationName |
|
82 | + */ |
|
80 | 83 | public function pour(&$rows, $relationName) |
81 | 84 | { |
82 | 85 | foreach ($rows as &$row) { |
@@ -18,7 +18,6 @@ |
||
18 | 18 | use hiqdev\php\billing\sale\SaleFactoryInterface; |
19 | 19 | use hiqdev\php\billing\sale\SaleRepositoryInterface; |
20 | 20 | use hiqdev\php\billing\sale\SaleQuery; |
21 | -use hiqdev\php\billing\sale\Sale; |
|
22 | 21 | |
23 | 22 | class SaleRepository extends BaseRepository implements SaleRepositoryInterface |
24 | 23 | { |