@@ -12,6 +12,9 @@ discard block |
||
12 | 12 | { |
13 | 13 | abstract public function preSave(BaseEntityInterface $entity); |
14 | 14 | |
15 | + /** |
|
16 | + * @return string |
|
17 | + */ |
|
15 | 18 | abstract public function getMessageNotFound(); |
16 | 19 | |
17 | 20 | public function validate(BaseEntityInterface $entity) |
@@ -40,6 +43,9 @@ discard block |
||
40 | 43 | return parent::getClassMetadata(); |
41 | 44 | } |
42 | 45 | |
46 | + /** |
|
47 | + * @return string|null |
|
48 | + */ |
|
43 | 49 | public function getEntityName() |
44 | 50 | { |
45 | 51 | return parent::getDocumentName(); |
@@ -137,7 +143,7 @@ discard block |
||
137 | 143 | } |
138 | 144 | |
139 | 145 | /** |
140 | - * @param Bludata\Entities\BaseEntityInterface $entity |
|
146 | + * @param BaseEntityInterface $entity |
|
141 | 147 | * |
142 | 148 | * @return Bludata\Repositories\QueryWorker |
143 | 149 | */ |
@@ -149,7 +155,7 @@ discard block |
||
149 | 155 | } |
150 | 156 | |
151 | 157 | /** |
152 | - * @param Bludata\Entities\BaseEntityInterface $entity |
|
158 | + * @param BaseEntityInterface $entity |
|
153 | 159 | * |
154 | 160 | * @return Bludata\Repositories\QueryWorker |
155 | 161 | */ |
@@ -25,7 +25,7 @@ |
||
25 | 25 | * |
26 | 26 | * @param \Doctrine\ORM\Query\SqlWalker $sqlWalker |
27 | 27 | * |
28 | - * @return void |
|
28 | + * @return string |
|
29 | 29 | */ |
30 | 30 | public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker) |
31 | 31 | { |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | /** |
55 | 55 | * Busca a anotação Doctrine\ORM\Mapping\Column. |
56 | 56 | */ |
57 | - $column = array_filter($propertyAnnotations, function ($annotation) { |
|
57 | + $column = array_filter($propertyAnnotations, function($annotation) { |
|
58 | 58 | return $annotation instanceof Column; |
59 | 59 | }); |
60 | 60 | |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | /** |
66 | 66 | * Busca a anotação Bludata\Doctrine\Common\Annotations\ToObject. |
67 | 67 | */ |
68 | - $toObject = array_filter($propertyAnnotations, function ($annotation) { |
|
68 | + $toObject = array_filter($propertyAnnotations, function($annotation) { |
|
69 | 69 | return $annotation instanceof ToObject; |
70 | 70 | }); |
71 | 71 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | /** |
85 | 85 | * Busca pelas anotações Doctrine\ORM\Mapping\ManyToOne || Doctrine\ORM\Mapping\OneToMany || Doctrine\ORM\Mapping\ManyToMany. |
86 | 86 | */ |
87 | - $ormMapping = array_filter($propertyAnnotations, function ($annotation) { |
|
87 | + $ormMapping = array_filter($propertyAnnotations, function($annotation) { |
|
88 | 88 | return $annotation instanceof ManyToOne |
89 | 89 | || |
90 | 90 | $annotation instanceof OneToMany |