cycle / orm

PHP DataMapper, ORM
https://cycle-orm.dev
MIT License
1.23k stars 72 forks source link

💡 Add extended error message in ClouserHydrator.php #410

Open AlexWaha opened 1 year ago

AlexWaha commented 1 year ago

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..."