@@ -148,8 +148,8 @@ discard block |
||
| 148 | 148 | public function get(array $columns = [], bool $primaryColumn = true): ?Entity |
| 149 | 149 | { |
| 150 | 150 | $result = $this->query($columns, $primaryColumn) |
| 151 | - ->fetchAssoc() |
|
| 152 | - ->get(); |
|
| 151 | + ->fetchAssoc() |
|
| 152 | + ->get(); |
|
| 153 | 153 | |
| 154 | 154 | if ($result === false) { |
| 155 | 155 | return null; |
@@ -298,11 +298,11 @@ discard block |
||
| 298 | 298 | } |
| 299 | 299 | |
| 300 | 300 | /** |
| 301 | - * Find entities record using primary key values |
|
| 302 | - * @param mixed ...$ids |
|
| 303 | - * |
|
| 304 | - * @return TEntity[] |
|
| 305 | - */ |
|
| 301 | + * Find entities record using primary key values |
|
| 302 | + * @param mixed ...$ids |
|
| 303 | + * |
|
| 304 | + * @return TEntity[] |
|
| 305 | + */ |
|
| 306 | 306 | public function findAll(mixed ...$ids): array |
| 307 | 307 | { |
| 308 | 308 | if (is_array($ids[0])) { |
@@ -543,6 +543,6 @@ discard block |
||
| 543 | 543 | protected function transaction(Closure $callback): mixed |
| 544 | 544 | { |
| 545 | 545 | return $this->manager->getConnection() |
| 546 | - ->transaction($callback); |
|
| 546 | + ->transaction($callback); |
|
| 547 | 547 | } |
| 548 | 548 | } |
@@ -317,9 +317,9 @@ discard block |
||
| 317 | 317 | } |
| 318 | 318 | } |
| 319 | 319 | |
| 320 | - /** |
|
| 321 | - * {@inheritedoc} |
|
| 322 | - */ |
|
| 320 | + /** |
|
| 321 | + * {@inheritedoc} |
|
| 322 | + */ |
|
| 323 | 323 | public function hasColumn(string $column): bool |
| 324 | 324 | { |
| 325 | 325 | return array_key_exists($column, $this->columns) |
@@ -352,9 +352,9 @@ discard block |
||
| 352 | 352 | $this->rawColumns[$name] = $value; |
| 353 | 353 | } |
| 354 | 354 | |
| 355 | - /** |
|
| 356 | - * {@inheritedoc} |
|
| 357 | - */ |
|
| 355 | + /** |
|
| 356 | + * {@inheritedoc} |
|
| 357 | + */ |
|
| 358 | 358 | public function getRelated(string $name, callable $callback = null): mixed |
| 359 | 359 | { |
| 360 | 360 | if (array_key_exists($name, $this->relations)) { |
@@ -221,10 +221,10 @@ discard block |
||
| 221 | 221 | return $this; |
| 222 | 222 | } |
| 223 | 223 | |
| 224 | - /** |
|
| 225 | - * {@inheritedoc} |
|
| 226 | - * @return EntityMapper<TEntity> |
|
| 227 | - */ |
|
| 224 | + /** |
|
| 225 | + * {@inheritedoc} |
|
| 226 | + * @return EntityMapper<TEntity> |
|
| 227 | + */ |
|
| 228 | 228 | public function sequence(string $sequence): self |
| 229 | 229 | { |
| 230 | 230 | $this->sequence = $sequence; |
@@ -254,10 +254,10 @@ discard block |
||
| 254 | 254 | return $this; |
| 255 | 255 | } |
| 256 | 256 | |
| 257 | - /** |
|
| 258 | - * {@inheritedoc} |
|
| 259 | - * @return EntityMapper<TEntity> |
|
| 260 | - */ |
|
| 257 | + /** |
|
| 258 | + * {@inheritedoc} |
|
| 259 | + * @return EntityMapper<TEntity> |
|
| 260 | + */ |
|
| 261 | 261 | public function guarded(array $columns): self |
| 262 | 262 | { |
| 263 | 263 | $this->guarded = $columns; |