Skip to content

Commit

Permalink
Support custom not found message based on Doctrine Bridge MapEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii Romanchenko committed Sep 18, 2024
1 parent 1399887 commit b1e808c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"symfony/config": "^6.4 || ^7.0",
"symfony/console": "^6.4 || ^7.0",
"symfony/dependency-injection": "^6.4 || ^7.0",
"symfony/doctrine-bridge": "^6.4 || ^7.0",
"symfony/doctrine-bridge": "^7.1",
"symfony/framework-bundle": "^6.4 || ^7.0",
"symfony/http-kernel": "^6.4 || ^7.0",
"symfony/options-resolver": "^6.4 || ^7.0"
Expand Down
3 changes: 2 additions & 1 deletion src/Attribute/MapDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public function __construct(
public array|string|null $id = null,
bool $disabled = false,
string $resolver = DocumentValueResolver::class,
public ?string $message = null,
) {
parent::__construct($class, $objectManager, $expr, $mapping, $exclude, $stripNull, $id, null, $disabled, $resolver);
parent::__construct($class, $objectManager, $expr, $mapping, $exclude, $stripNull, $id, null, $disabled, $resolver, $message);
}
}

0 comments on commit b1e808c

Please sign in to comment.