Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃挕 Add extended error message in ClouserHydrator.php #410

Open
AlexWaha opened this issue May 8, 2023 · 0 comments
Open

馃挕 Add extended error message in ClouserHydrator.php #410

AlexWaha opened this issue May 8, 2023 · 0 comments
Assignees
Labels
type:enhancement Enhancement.

Comments

@AlexWaha
Copy link

AlexWaha commented May 8, 2023

I have an idea!

vendor\cycle\orm\src\Mapper\Proxy\Hydrator\ClosureHydrator.php on line 41

Change line #42
"Can't hydrate an entity because property and value types are incompatible. Error message: " . $e->getMessage(),
after that developer can see a detailed error message like this example

"...Error message: Cannot assign int to property Model\User\UserAuthorize::$total of type string..."

@AlexWaha AlexWaha added the type:feature New feature. label May 8, 2023
@roxblnfk roxblnfk added type:enhancement Enhancement. and removed type:feature New feature. labels May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Enhancement.
Projects
Status: Todo
Development

No branches or pull requests

3 participants