nette / database

💾 A database layer with a familiar PDO-like API but much more powerful. Building queries, advanced joins, drivers for MySQL, PostgreSQL, SQLite, MS SQL Server and Oracle.
https://doc.nette.org/database
Other
512 stars 108 forks source link

Typehint fixes #222

Closed milo closed 5 years ago

milo commented 5 years ago

Before added typehints, primary keys of referencing tables cound be string.

https://forum.nette.org/cs/32048-activerow-related-nefunguje-se-stringovym-primarnim-klicem-v3-0

milo commented 5 years ago

I'm not sure if Structure::getBelongsToReference() return value fix commit is corrent. Fix is based on how DiscoveredConventions::getBelongsToReference() works. Don't know how it is possible that it worked before :)

Ready to merge from my point of view.

dg commented 5 years ago

Thank you!