@@ -78,7 +78,7 @@ |
||
78 | 78 | * |
79 | 79 | * @param EntityInterface $entity |
80 | 80 | * |
81 | - * @return self|$this|EntityInterface |
|
81 | + * @return EntityMapper |
|
82 | 82 | */ |
83 | 83 | public function delete(EntityInterface $entity) |
84 | 84 | { |
@@ -13,7 +13,6 @@ |
||
13 | 13 | use League\Event\EmitterInterface; |
14 | 14 | use League\Event\ListenerInterface; |
15 | 15 | use Slick\Database\Adapter\AdapterInterface; |
16 | -use Slick\Orm\Descriptor\EntityDescriptor; |
|
17 | 16 | use Slick\Orm\Descriptor\EntityDescriptorRegistry; |
18 | 17 | use Slick\Orm\Event\EmittersMap; |
19 | 18 | use Slick\Orm\Exception\InvalidArgumentException; |
@@ -152,7 +152,7 @@ |
||
152 | 152 | * an optional third parameter specifying the priority as an integer. You |
153 | 153 | * may use one of EmitterInterface predefined constants here if you want. |
154 | 154 | * |
155 | - * @param string|EntityInterface $entityClass |
|
155 | + * @param string $entityClass |
|
156 | 156 | * @param string $event |
157 | 157 | * @param ListenerInterface|callable $listener |
158 | 158 | * @param int $priority |
@@ -27,7 +27,7 @@ |
||
27 | 27 | /** |
28 | 28 | * Triggers the before save event |
29 | 29 | * |
30 | - * @param Sql/Update|Sql/Insert $query |
|
30 | + * @param \Slick\Database\Sql\SqlInterface $query |
|
31 | 31 | * @param EntityInterface $entity |
32 | 32 | * @param array $data |
33 | 33 | * |
@@ -11,9 +11,9 @@ |
||
11 | 11 | |
12 | 12 | use Slick\Database\Sql; |
13 | 13 | use Slick\Orm\EntityInterface; |
14 | +use Slick\Orm\RepositoryInterface; |
|
14 | 15 | use Slick\Orm\Repository\QueryObject\QueryObject; |
15 | 16 | use Slick\Orm\Repository\QueryObject\QueryObjectInterface; |
16 | -use Slick\Orm\RepositoryInterface; |
|
17 | 17 | |
18 | 18 | /** |
19 | 19 | * Class EntityRepository |
@@ -15,9 +15,9 @@ |
||
15 | 15 | use Slick\Orm\Descriptor\EntityDescriptorInterface; |
16 | 16 | use Slick\Orm\Descriptor\EntityDescriptorRegistry; |
17 | 17 | use Slick\Orm\Descriptor\Field\FieldDescriptor; |
18 | -use Slick\Orm\Entity\EntityCollection; |
|
19 | 18 | use Slick\Orm\EntityInterface; |
20 | 19 | use Slick\Orm\EntityMapperInterface; |
20 | +use Slick\Orm\Entity\EntityCollection; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * Generic Entity Mapper |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * |
31 | 31 | * @param array $data Partial data to save |
32 | 32 | * |
33 | - * @return mixed |
|
33 | + * @return Mapper\EntityMapper |
|
34 | 34 | */ |
35 | 35 | public function save(array $data = []) |
36 | 36 | { |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | /** |
43 | 43 | * Deletes current entity from its storage |
44 | 44 | * |
45 | - * @return self|$this|EntityInterface |
|
45 | + * @return Mapper\EntityMapper |
|
46 | 46 | */ |
47 | 47 | public function delete() |
48 | 48 | { |
@@ -15,9 +15,9 @@ |
||
15 | 15 | use Slick\Orm\Descriptor\EntityDescriptorInterface; |
16 | 16 | use Slick\Orm\Descriptor\EntityDescriptorRegistry; |
17 | 17 | use Slick\Orm\Descriptor\Field\FieldDescriptor; |
18 | -use Slick\Orm\Entity\EntityCollection; |
|
19 | 18 | use Slick\Orm\EntityInterface; |
20 | 19 | use Slick\Orm\EntityMapperInterface; |
20 | +use Slick\Orm\Entity\EntityCollection; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * Generic Entity Mapper |
@@ -15,9 +15,9 @@ |
||
15 | 15 | use Slick\Orm\Descriptor\EntityDescriptorInterface; |
16 | 16 | use Slick\Orm\Descriptor\EntityDescriptorRegistry; |
17 | 17 | use Slick\Orm\Descriptor\Field\FieldDescriptor; |
18 | -use Slick\Orm\Entity\EntityCollection; |
|
19 | 18 | use Slick\Orm\EntityInterface; |
20 | 19 | use Slick\Orm\EntityMapperInterface; |
20 | +use Slick\Orm\Entity\EntityCollection; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * Generic Entity Mapper |