thecodingmachine / tdbm

The Database Machine is a PHP ORM that requires no configuration. The object model is deduced from the database model.
https://thecodingmachine.github.io/tdbm/
119 stars 27 forks source link

Fatal error while generating entities on php 8.1 #270

Closed maliouba closed 2 years ago

maliouba commented 2 years ago

While generating my entities with tdbm:generate, i have two errors:

The first one is located in this file api/vendor/thecodingmachine/tdbm/src/Utils/PivotTableMethodsDescriptor.php Uncaught Error: Class "Doctrine\Common\Inflector\Inflector" not found.

After manually fixing the import, the generation for some reason fails with the following error message Uncaught Error: Non-static method Doctrine\Inflector\Inflector::pluralize() cannot be called statically

homersimpsons commented 2 years ago

Should be fixed with #271 (released in tdbm v5.3.3)